diff --git a/src/flashFormatter/FlashFormatterQSPI.h b/src/flashFormatter/FlashFormatterQSPI.h index ad070bf..815d9e9 100644 --- a/src/flashFormatter/FlashFormatterQSPI.h +++ b/src/flashFormatter/FlashFormatterQSPI.h @@ -10,6 +10,9 @@ #include #include #include +#ifdef ARDUINO_OPTA +#include +#endif #if !defined(ARDUINO_PORTENTA_C33) using namespace mbed; @@ -36,7 +39,12 @@ class FlashFormatterQSPI : public FlashFormatterBase { FATFileSystem _otaFS; MBRBlockDevice _kvstoreData; MBRBlockDevice _runtimeData; +#ifdef ARDUINO_OPTA + // For compatibility with Opta's PLC runtime, use LittleFS + LittleFileSystem _runtimeFS; +#else FATFileSystem _runtimeFS; +#endif bool _runtimeFormat; };