From 14c839780a91d81badc21aadecbbbe047e8ae261 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Apr 2023 13:47:52 +1000 Subject: [PATCH] AP_FETtecOneWire: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE we have an assertion that no board with >1MB of flash is minimized --- libraries/AP_FETtecOneWire/AP_FETtecOneWire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_FETtecOneWire/AP_FETtecOneWire.h b/libraries/AP_FETtecOneWire/AP_FETtecOneWire.h index 521288c14d..0b92e5313f 100644 --- a/libraries/AP_FETtecOneWire/AP_FETtecOneWire.h +++ b/libraries/AP_FETtecOneWire/AP_FETtecOneWire.h @@ -21,7 +21,7 @@ #include #ifndef AP_FETTEC_ONEWIRE_ENABLED -#define AP_FETTEC_ONEWIRE_ENABLED !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024 +#define AP_FETTEC_ONEWIRE_ENABLED BOARD_FLASH_SIZE > 1024 #endif // Support both full-duplex at 500Kbit/s as well as half-duplex at 2Mbit/s (optional feature)