diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index 31157bcc74a..4b350366f68 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -42,7 +42,7 @@ TimeService time_service; #if OTA_STORAGE_SSU static OTAStorage_SSU ota_storage_ssu; -#elif OTA_STORAGE_MKRMEM +#elif OTA_STORAGE_SFU static OTAStorage_SFU ota_storage_sfu; #endif @@ -146,9 +146,9 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort) #if OTA_STORAGE_SSU setOTAStorage(ota_storage_ssu); -#elif OTA_STORAGE_MKRMEM +#elif OTA_STORAGE_SFU setOTAStorage(ota_storage_sfu); -#endif /* OTA_STORAGE_MKRMEM */ +#endif return 1; } diff --git a/src/ArduinoIoTCloud_Config.h b/src/ArduinoIoTCloud_Config.h index 821755b4c61..1f08f20f26e 100644 --- a/src/ArduinoIoTCloud_Config.h +++ b/src/ArduinoIoTCloud_Config.h @@ -22,8 +22,8 @@ * USER CONFIGURED DEFINES ******************************************************************************/ -#ifndef OTA_STORAGE_MKRMEM - #define OTA_STORAGE_MKRMEM (0) +#ifndef OTA_STORAGE_SFU + #define OTA_STORAGE_SFU (0) #endif #ifdef ARDUINO_SAMD_MKRGSM1400 @@ -36,7 +36,7 @@ * AUTOMATIC CONFIGURED DEFINES ******************************************************************************/ -#if OTA_STORAGE_MKRMEM || OTA_STORAGE_SSU +#if OTA_STORAGE_SFU || OTA_STORAGE_SSU #define OTA_ENABLED (1) #else #define OTA_ENABLED (0) diff --git a/src/utility/ota/OTAStorage_SFU.cpp b/src/utility/ota/OTAStorage_SFU.cpp index d5ceecbdd84..dc094a9833c 100644 --- a/src/utility/ota/OTAStorage_SFU.cpp +++ b/src/utility/ota/OTAStorage_SFU.cpp @@ -20,7 +20,7 @@ ******************************************************************************/ #include "OTAStorage_SFU.h" -#if OTA_STORAGE_MKRMEM +#if OTA_STORAGE_SFU #include @@ -92,4 +92,4 @@ void OTAStorage_SFU::deinit() filesystem.unmount(); } -#endif /* OTA_STORAGE_MKRMEM */ +#endif /* OTA_STORAGE_SFU */ diff --git a/src/utility/ota/OTAStorage_SFU.h b/src/utility/ota/OTAStorage_SFU.h index c874d4a5a48..f7298ae540d 100644 --- a/src/utility/ota/OTAStorage_SFU.h +++ b/src/utility/ota/OTAStorage_SFU.h @@ -23,7 +23,7 @@ ******************************************************************************/ #include -#if OTA_STORAGE_MKRMEM +#if OTA_STORAGE_SFU #include "OTAStorage.h" @@ -58,6 +58,6 @@ class OTAStorage_SFU : public OTAStorage }; -#endif /* OTA_STORAGE_MKRMEM */ +#endif /* OTA_STORAGE_SFU */ #endif /* ARDUINO_OTA_STORAGE_SFU_H_ */