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
This commit is contained in:
Peter Barker 2023-04-14 13:47:52 +10:00 committed by Peter Barker
parent 7bbeab7aaa
commit e363d6dfa5
1 changed files with 1 additions and 1 deletions

View File

@ -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