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)