mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_HAL: add a sanity check that we don't minimize features on a 2MB board
This commit is contained in:
parent
79b22a7ed8
commit
65558afa8f
@ -325,3 +325,11 @@
|
||||
#ifndef HAL_ENABLE_DFU_BOOT
|
||||
#define HAL_ENABLE_DFU_BOOT 0
|
||||
#endif
|
||||
|
||||
|
||||
// sanity checks for the configuration. This can't test everything as
|
||||
// the libraries can do their own definitions - but we can catch some
|
||||
// things:
|
||||
#if HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024
|
||||
#error "2MB board with minimize features?!"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user