Skip to content

Commit aad3598

Browse files
committed
use LittleFS for Opta user's partition
1 parent e481f5e commit aad3598

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flashFormatter/FlashFormatterQSPI.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <BlockDevice.h>
1111
#include <MBRBlockDevice.h>
1212
#include <FATFileSystem.h>
13+
#include <LittleFileSystem.h>
1314

1415
#if !defined(ARDUINO_PORTENTA_C33)
1516
using namespace mbed;
@@ -36,7 +37,12 @@ class FlashFormatterQSPI : public FlashFormatterBase {
3637
FATFileSystem _otaFS;
3738
MBRBlockDevice _kvstoreData;
3839
MBRBlockDevice _runtimeData;
40+
#ifdef ARDUINO_OPTA
41+
// For compatibility with Opta's PLC runtime, use LittleFS
42+
LittleFileSystem _runtimeFS;
43+
#else
3944
FATFileSystem _runtimeFS;
45+
#endif
4046
bool _runtimeFormat;
4147
};
4248

0 commit comments

Comments
 (0)