AP_Filesystem: fixed builds for ESP32

This commit is contained in:
Wiktor Maslowski 2022-11-28 10:24:50 +11:00 committed by Andrew Tridgell
parent 76b83c3d57
commit 02b2b9b807
1 changed files with 6 additions and 3 deletions

View File

@ -28,13 +28,16 @@
#define MAX_NAME_LEN 255
#endif
#if (CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS) || (CONFIG_HAL_BOARD == HAL_BOARD_ESP32)
#define DT_REG 0
#define DT_DIR 1
#define DT_LNK 10
#endif
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if HAVE_FILESYSTEM_SUPPORT
#include "AP_Filesystem_FATFS.h"
#endif
#define DT_REG 0
#define DT_DIR 1
#define DT_LNK 10
struct dirent {
char d_name[MAX_NAME_LEN]; /* filename */