mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 17:03:57 -04:00
AP_HAL_ChibiOS: replace HAVE_FILESYSTEM_SUPPORT with backend defines
This commit is contained in:
parent
1c54d18672
commit
30131a2f36
@ -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
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user