Skip to content

Commit

Permalink
Changing #define OTA_STORAGE_MKRMEM to OTA_STORAGE_SFU (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger authored Jul 7, 2020
1 parent c3d3d4d commit b9a6f88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/ArduinoIoTCloudTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ArduinoIoTCloud_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/utility/ota/OTAStorage_SFU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
******************************************************************************/

#include "OTAStorage_SFU.h"
#if OTA_STORAGE_MKRMEM
#if OTA_STORAGE_SFU

#include <Arduino_DebugUtils.h>

Expand Down Expand Up @@ -92,4 +92,4 @@ void OTAStorage_SFU::deinit()
filesystem.unmount();
}

#endif /* OTA_STORAGE_MKRMEM */
#endif /* OTA_STORAGE_SFU */
4 changes: 2 additions & 2 deletions src/utility/ota/OTAStorage_SFU.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
******************************************************************************/

#include <ArduinoIoTCloud_Config.h>
#if OTA_STORAGE_MKRMEM
#if OTA_STORAGE_SFU

#include "OTAStorage.h"

Expand Down Expand Up @@ -58,6 +58,6 @@ class OTAStorage_SFU : public OTAStorage

};

#endif /* OTA_STORAGE_MKRMEM */
#endif /* OTA_STORAGE_SFU */

#endif /* ARDUINO_OTA_STORAGE_SFU_H_ */

0 comments on commit b9a6f88

Please sign in to comment.