From 1a8ae96b0daa341d03d8bfab5af711d6a79ce44f Mon Sep 17 00:00:00 2001
From: Andy Piper <github@andypiper.com>
Date: Thu, 12 Oct 2023 09:15:24 +0100
Subject: [PATCH] hwdef: ensure SpeedyBeeF405Mini builds on plane

---
 libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat
index 0ef295e46d..6e78afb526 100644
--- a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat
+++ b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405Mini/hwdef.dat
@@ -152,3 +152,7 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
 define HAL_DEFAULT_INS_FAST_SAMPLE 3
 # Motor order implies Betaflight/X for standard ESCs
 define HAL_FRAME_TYPE_DEFAULT 12
+
+# minimal drivers to reduce flash usage
+include ../include/minimal.inc
+define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0