From 20efcf8e251da3e8f7841ecf620fe58a7ca64c95 Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Mon, 23 Sep 2024 06:40:04 -0500 Subject: [PATCH] Tools:remove BATTRY_SUM from <1K builds --- libraries/AP_BattMonitor/AP_BattMonitor_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_config.h b/libraries/AP_BattMonitor/AP_BattMonitor_config.h index e15909c1435794..14a1fa7d281e12 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_config.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_config.h @@ -83,7 +83,7 @@ #endif #ifndef AP_BATTERY_SUM_ENABLED -#define AP_BATTERY_SUM_ENABLED AP_BATTERY_BACKEND_DEFAULT_ENABLED +#define AP_BATTERY_SUM_ENABLED AP_BATTERY_BACKEND_DEFAULT_ENABLED && (BOARD_FLASH_SIZE > 1024) #endif #ifndef AP_BATTERY_TORQEEDO_ENABLED