From 4b5f490e9f620b5ecb363ed45b2c8676f0793abb 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 e15909c143..14a1fa7d28 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