Skip to content

Commit caeef3a

Browse files
committed
fix LittleFS typos
1 parent 361e2ed commit caeef3a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/storage.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
#define STORAGE_UNITS_MB 2
1414

1515
#ifdef USE_LittleFS
16-
#include <LITTLEFS.h>
17-
#define FORMAT_LITTLEFS_IF_FAILED true
18-
#define STORAGE_UNITS STORAGE_UNITS_BT
16+
#include <FS.h>
17+
#include <LITTLEFS.h>
18+
#define FORMAT_LITTLEFS_IF_FAILED true
19+
#define STORAGE_UNITS STORAGE_UNITS_BT
1920
#elif defined(CAMERA_MODEL_LILYGO_T_SIMCAM)
20-
#include "camera_pins.h"
21-
#include "SD.h"
22-
#define STORAGE_UNITS STORAGE_UNITS_MB
21+
#include "camera_pins.h"
22+
#include "SD.h"
23+
#define STORAGE_UNITS STORAGE_UNITS_MB
2324
#else
24-
#include "SD_MMC.h"
25-
#define STORAGE_UNITS STORAGE_UNITS_MB
25+
#include "SD_MMC.h"
26+
#define STORAGE_UNITS STORAGE_UNITS_MB
2627
#endif
2728

2829
/**
@@ -54,7 +55,7 @@ class CLStorage {
5455
bool remove(const String &path) {return fsStorage->remove(path);};
5556

5657
#ifdef USE_LittleFS
57-
fs::LITTLEFSFS & getFS() {return *fsStorage;};
58+
fs::LittleFSFS & getFS() {return *fsStorage;};
5859
#elif defined(CAMERA_MODEL_LILYGO_T_SIMCAM)
5960
fs::SDFS & getFS() {return *fsStorage;};
6061
#else
@@ -63,7 +64,7 @@ class CLStorage {
6364

6465
private:
6566
#ifdef USE_LittleFS
66-
fs::LITTLEFSFS * const fsStorage = &LITTLEFS;
67+
fs::LittleFSFS * const fsStorage = &LittleFS;
6768
#elif defined(CAMERA_MODEL_LILYGO_T_SIMCAM)
6869
fs::SDFS * const fsStorage = &SD;
6970
#else

0 commit comments

Comments
 (0)