From e363d6dfa51340e009b24dc34b85fb7d0baff9b3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Apr 2023 13:47:52 +1000 Subject: [PATCH] AP_BattMonitor: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE we have an assertion that no board with >1MB of flash is minimized --- libraries/AP_BattMonitor/AP_BattMonitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor.h b/libraries/AP_BattMonitor/AP_BattMonitor.h index 93987634cd..8f28212a21 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor.h @@ -23,7 +23,7 @@ #define AP_BATT_MONITOR_RES_EST_TC_1 0.5f #define AP_BATT_MONITOR_RES_EST_TC_2 0.1f -#if !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024 +#if BOARD_FLASH_SIZE > 1024 #define AP_BATT_MONITOR_CELLS_MAX 14 #else #define AP_BATT_MONITOR_CELLS_MAX 12