mirror of https://github.com/ArduPilot/ardupilot
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
This commit is contained in:
parent
de7d5c6899
commit
14c839780a
|
@ -21,7 +21,7 @@
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
#ifndef AP_FETTEC_ONEWIRE_ENABLED
|
#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
|
#endif
|
||||||
|
|
||||||
// Support both full-duplex at 500Kbit/s as well as half-duplex at 2Mbit/s (optional feature)
|
// Support both full-duplex at 500Kbit/s as well as half-duplex at 2Mbit/s (optional feature)
|
||||||
|
|
Loading…
Reference in New Issue