ardupilot/libraries/AP_Torqeedo/AP_Torqeedo_config.h
Peter Barker 3999d454e1 AP_Torqeedo: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00

8 lines
171 B
C

#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_TORQEEDO_ENABLED
#define HAL_TORQEEDO_ENABLED BOARD_FLASH_SIZE > 1024 && !defined(HAL_BUILD_AP_PERIPH)
#endif