mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-11 18:34:19 -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>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifndef AP_FILESYSTEM_FORMAT_ENABLED
|
#ifndef AP_FILESYSTEM_FORMAT_ENABLED
|
||||||
// only enable for SDMMC filesystems for now as other types can't query
|
#define AP_FILESYSTEM_FORMAT_ENABLED 1
|
||||||
// block size
|
|
||||||
#ifndef HAL_USE_SDMMC
|
|
||||||
#define HAL_USE_SDMMC 0
|
|
||||||
#endif
|
|
||||||
#define AP_FILESYSTEM_FORMAT_ENABLED HAL_USE_SDMMC
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX || CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX || CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
@ -69,10 +64,6 @@ struct dirent {
|
|||||||
|
|
||||||
#include "AP_Filesystem_backend.h"
|
#include "AP_Filesystem_backend.h"
|
||||||
|
|
||||||
#ifndef AP_FILESYSTEM_FORMAT_ENABLED
|
|
||||||
#define AP_FILESYSTEM_FORMAT_ENABLED 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class AP_Filesystem {
|
class AP_Filesystem {
|
||||||
private:
|
private:
|
||||||
struct DirHandle {
|
struct DirHandle {
|
||||||
|
Loading…
Reference in New Issue
Block a user