AP_Generator: disable feature due to flash space constraints

ArduPilot doesn't have room for every feature it can have, and hasn't for some time.
This commit is contained in:
Peter Barker 2024-09-17 11:16:01 +10:00
parent cd5a22b1ad
commit e3801ad0e3
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include <AP_HAL/AP_HAL_Boards.h> #include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_GENERATOR_ENABLED #ifndef HAL_GENERATOR_ENABLED
#define HAL_GENERATOR_ENABLED 1 #define HAL_GENERATOR_ENABLED BOARD_FLASH_SIZE > 2048
#endif #endif
#ifndef AP_GENERATOR_BACKEND_DEFAULT_ENABLED #ifndef AP_GENERATOR_BACKEND_DEFAULT_ENABLED
@ -23,5 +23,5 @@
#endif #endif
#ifndef AP_GENERATOR_RICHENPOWER_ENABLED #ifndef AP_GENERATOR_RICHENPOWER_ENABLED
#define AP_GENERATOR_RICHENPOWER_ENABLED AP_GENERATOR_BACKEND_DEFAULT_ENABLED && BOARD_FLASH_SIZE > 1024 #define AP_GENERATOR_RICHENPOWER_ENABLED AP_GENERATOR_BACKEND_DEFAULT_ENABLED
#endif #endif