Skip to content

Commit 8c27fde

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/flashFormatter/FlashFormatterQSPI.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
#include <BlockDevice.h>
1111
#include <MBRBlockDevice.h>
1212
#include <FATFileSystem.h>
13+
#ifdef ARDUINO_OPTA
14+
#include <LittleFileSystem.h>
15+
#endif
1316

1417
#if !defined(ARDUINO_PORTENTA_C33)
1518
using namespace mbed;
@@ -36,7 +39,12 @@ class FlashFormatterQSPI : public FlashFormatterBase {
3639
FATFileSystem _otaFS;
3740
MBRBlockDevice _kvstoreData;
3841
MBRBlockDevice _runtimeData;
42+
#ifdef ARDUINO_OPTA
43+
// For compatibility with Opta's PLC runtime, use LittleFS
44+
LittleFileSystem _runtimeFS;
45+
#else
3946
FATFileSystem _runtimeFS;
47+
#endif
4048
bool _runtimeFormat;
4149
};
4250

0 commit comments

Comments
 (0)