diff --git a/libraries/AP_HAL_ChibiOS/Storage.cpp b/libraries/AP_HAL_ChibiOS/Storage.cpp index 3ff3838f1437c0..5dcf52cb4b2f09 100644 --- a/libraries/AP_HAL_ChibiOS/Storage.cpp +++ b/libraries/AP_HAL_ChibiOS/Storage.cpp @@ -42,12 +42,8 @@ extern const AP_HAL::HAL& hal; #endif #ifndef HAL_STORAGE_BACKUP_COUNT -#if AP_FILESYSTEM_LITTLEFS_ENABLED -#define HAL_STORAGE_BACKUP_COUNT 0 -#else #define HAL_STORAGE_BACKUP_COUNT 100 #endif -#endif #define STORAGE_FLASH_RETRIES 5 @@ -131,7 +127,7 @@ void Storage::_storage_open(void) */ void Storage::_save_backup(void) { -#ifdef USE_POSIX +#ifdef USE_POSIX_FATFS // allow for fallback to microSD or dataflash based storage // create the backup directory if need be int ret;