From 5bd665370d5d8932352590761b5d8416a704dd2b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Jun 2022 13:20:22 +1000 Subject: [PATCH] hwdef: fixed Pixhawk6X ALT_RAM_MAP check --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 122246adcc..5adcdfd256 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -709,7 +709,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)