mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-06 16:03:58 -04:00
AP_Filesystem: enable filesystem format on all boards
this works in ChibiOS 21.xx
This commit is contained in:
parent
6f469c48e7
commit
2703928fb2
@ -51,12 +51,7 @@ struct dirent {
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef AP_FILESYSTEM_FORMAT_ENABLED
|
||||
// only enable for SDMMC filesystems for now as other types can't query
|
||||
// block size
|
||||
#ifndef HAL_USE_SDMMC
|
||||
#define HAL_USE_SDMMC 0
|
||||
#endif
|
||||
#define AP_FILESYSTEM_FORMAT_ENABLED HAL_USE_SDMMC
|
||||
#define AP_FILESYSTEM_FORMAT_ENABLED 1
|
||||
#endif
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX || CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
@ -69,10 +64,6 @@ struct dirent {
|
||||
|
||||
#include "AP_Filesystem_backend.h"
|
||||
|
||||
#ifndef AP_FILESYSTEM_FORMAT_ENABLED
|
||||
#define AP_FILESYSTEM_FORMAT_ENABLED 0
|
||||
#endif
|
||||
|
||||
class AP_Filesystem {
|
||||
private:
|
||||
struct DirHandle {
|
||||
|
Loading…
Reference in New Issue
Block a user