AP_HAL_ChibiOS: disable terrain unless SD card available

This commit is contained in:
Peter Barker 2023-07-14 13:01:04 +10:00 committed by Randy Mackay
parent 5ee85b82f9
commit dd325a7aaf

View File

@ -3473,6 +3473,9 @@ INCLUDE common.ld
#define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
#endif
// enable terrain only if there's an SD card available:
#define AP_TERRAIN_AVAILABLE HAL_OS_FATFS_IO
// end firmware defaults
''')