Skip to content

Commit

Permalink
Tools:remove BATTERY_SUM from <1K builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Sep 23, 2024
1 parent 7d907e9 commit 88ae9b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_BattMonitor/AP_BattMonitor_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/include/minimize_fpv_osd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED OSD_ENABLED && OSD_PARAM_ENABLED &&
# disable SMBUS battery monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
define AP_BATTERY_SMBUS_ENABLED 0
undef AP_BATTERY_SUM
define AP_BATTERY_SUM 0

0 comments on commit 88ae9b9

Please sign in to comment.