Skip to content

Commit b9a6f88

Browse files
authored
Changing #define OTA_STORAGE_MKRMEM to OTA_STORAGE_SFU (#159)
1 parent c3d3d4d commit b9a6f88

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/ArduinoIoTCloudTCP.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TimeService time_service;
4242

4343
#if OTA_STORAGE_SSU
4444
static OTAStorage_SSU ota_storage_ssu;
45-
#elif OTA_STORAGE_MKRMEM
45+
#elif OTA_STORAGE_SFU
4646
static OTAStorage_SFU ota_storage_sfu;
4747
#endif
4848

@@ -146,9 +146,9 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
146146

147147
#if OTA_STORAGE_SSU
148148
setOTAStorage(ota_storage_ssu);
149-
#elif OTA_STORAGE_MKRMEM
149+
#elif OTA_STORAGE_SFU
150150
setOTAStorage(ota_storage_sfu);
151-
#endif /* OTA_STORAGE_MKRMEM */
151+
#endif
152152

153153
return 1;
154154
}

src/ArduinoIoTCloud_Config.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* USER CONFIGURED DEFINES
2323
******************************************************************************/
2424

25-
#ifndef OTA_STORAGE_MKRMEM
26-
#define OTA_STORAGE_MKRMEM (0)
25+
#ifndef OTA_STORAGE_SFU
26+
#define OTA_STORAGE_SFU (0)
2727
#endif
2828

2929
#ifdef ARDUINO_SAMD_MKRGSM1400
@@ -36,7 +36,7 @@
3636
* AUTOMATIC CONFIGURED DEFINES
3737
******************************************************************************/
3838

39-
#if OTA_STORAGE_MKRMEM || OTA_STORAGE_SSU
39+
#if OTA_STORAGE_SFU || OTA_STORAGE_SSU
4040
#define OTA_ENABLED (1)
4141
#else
4242
#define OTA_ENABLED (0)

src/utility/ota/OTAStorage_SFU.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
******************************************************************************/
2121

2222
#include "OTAStorage_SFU.h"
23-
#if OTA_STORAGE_MKRMEM
23+
#if OTA_STORAGE_SFU
2424

2525
#include <Arduino_DebugUtils.h>
2626

@@ -92,4 +92,4 @@ void OTAStorage_SFU::deinit()
9292
filesystem.unmount();
9393
}
9494

95-
#endif /* OTA_STORAGE_MKRMEM */
95+
#endif /* OTA_STORAGE_SFU */

src/utility/ota/OTAStorage_SFU.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
******************************************************************************/
2424

2525
#include <ArduinoIoTCloud_Config.h>
26-
#if OTA_STORAGE_MKRMEM
26+
#if OTA_STORAGE_SFU
2727

2828
#include "OTAStorage.h"
2929

@@ -58,6 +58,6 @@ class OTAStorage_SFU : public OTAStorage
5858

5959
};
6060

61-
#endif /* OTA_STORAGE_MKRMEM */
61+
#endif /* OTA_STORAGE_SFU */
6262

6363
#endif /* ARDUINO_OTA_STORAGE_SFU_H_ */

0 commit comments

Comments
 (0)