diff --git a/libraries/AP_HAL_ChibiOS/Storage.cpp b/libraries/AP_HAL_ChibiOS/Storage.cpp index 53d410c5cd75d..8244eaf22bfcf 100644 --- a/libraries/AP_HAL_ChibiOS/Storage.cpp +++ b/libraries/AP_HAL_ChibiOS/Storage.cpp @@ -127,7 +127,7 @@ void Storage::_storage_open(void) */ void Storage::_save_backup(void) { -#if HAL_OS_POSIX_IO +#if HAL_USE_FATFS // allow for fallback to microSD or littlefs flash based storage // create the backup directory if need be int ret;