AP_Notify: replace HAVE_FILESYSTEM_SUPPORT with backend defines

This commit is contained in:
Peter Barker 2023-05-15 11:44:22 +10:00 committed by Peter Barker
parent 6dbf1f2d66
commit 5f2bb83401
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ bool AP_ToneAlarm::init()
_cont_tone_playing = -1;
hal.scheduler->register_timer_process(FUNCTOR_BIND(this, &AP_ToneAlarm::_timer_task, void));
#if HAVE_FILESYSTEM_SUPPORT && CONFIG_HAL_BOARD != HAL_BOARD_LINUX
#if (AP_FILESYSTEM_POSIX_ENABLED || AP_FILESYSTEM_FATFS_ENABLED) && CONFIG_HAL_BOARD != HAL_BOARD_LINUX
// if we don't have a SDcard then play a failure tone instead of
// normal startup tone. This gives the user a chance to fix it
// before they try to arm. We don't do this on Linux as Linux