hwdef: fixed Pixhawk6X ALT_RAM_MAP check

This commit is contained in:
Andrew Tridgell 2022-06-21 13:20:22 +10:00
parent 3ffef61aec
commit b1e3b9414b
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ def get_ram_map():
ram_map = get_mcu_config('RAM_MAP_EXTERNAL_FLASH', False)
if ram_map is not None:
return ram_map
elif int(env_vars.get('USE_ALT_RAM_MAP',0)) == '1':
elif int(env_vars.get('USE_ALT_RAM_MAP',0)) == 1:
print("Using ALT_RAM_MAP")
return get_mcu_config('ALT_RAM_MAP', True)
return get_mcu_config('RAM_MAP', True)