From 95b527dac8c3010f876fa34edb845a56fe23298e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Dec 2019 15:23:06 +1100 Subject: [PATCH] HAL_ChibiOS: save 3k of flash on MatekF405-Wing disable SMBUS and fuel battery monitors --- libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat index a154ba52e0..2b63687cbb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat @@ -182,3 +182,6 @@ define BOARD_PWM_COUNT_DEFAULT 9 define STM32_PWM_USE_ADVANCED TRUE +# disable SMBUS and fuel battery monitors to save flash +define HAL_BATTMON_SMBUS_ENABLE 0 +define HAL_BATTMON_FUEL_ENABLE 0