AP_HAL_ChibiOS: 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 1c54d18672
commit 30131a2f36
2 changed files with 5 additions and 1 deletions

View File

@ -3251,6 +3251,10 @@ INCLUDE common.ld
#define HAL_SPEKTRUM_TELEM_ENABLED 0 #define HAL_SPEKTRUM_TELEM_ENABLED 0
#endif #endif
#ifndef AP_FILESYSTEM_ROMFS_ENABLED
#define AP_FILESYSTEM_ROMFS_ENABLED 0
#endif
// end AP_Periph defaults // end AP_Periph defaults
''') ''')

View File

@ -184,7 +184,7 @@ bool sdcard_retry(void)
#ifdef USE_POSIX #ifdef USE_POSIX
if (!sdcard_running) { if (!sdcard_running) {
if (sdcard_init()) { if (sdcard_init()) {
#if HAVE_FILESYSTEM_SUPPORT #if AP_FILESYSTEM_FILE_WRITING_ENABLED
// create APM directory // create APM directory
AP::FS().mkdir("/APM"); AP::FS().mkdir("/APM");
#endif #endif