Skip to content

Commit

Permalink
AP_HAL_ChibiOS: turn off storage backup on anything other than FATFS
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 11, 2024
1 parent 88bbb33 commit 56ec9cd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/AP_HAL_ChibiOS/Storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 56ec9cd

Please sign in to comment.