Skip to content

Changing #define OTA_STORAGE_MKRMEM to OTA_STORAGE_SFU #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_ */