Skip to content

Commit

Permalink
fix: OTA build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
zfields committed Sep 12, 2024
1 parent 524094f commit 4399dfc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 11 additions & 7 deletions src/AIoTC_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,14 @@
#define BOARD_HAS_SECURE_ELEMENT
#endif

#endif // HAS_NOTECARD

#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
#define OTA_STORAGE_SNU (1)
#else
#define OTA_STORAGE_SNU (0)
#endif

#if defined(ARDUINO_NANO_RP2040_CONNECT)
#define OTA_STORAGE_SFU (1)
#else
#define OTA_STORAGE_SFU (0)
#if defined(ARDUINO_UNOR4_WIFI)
#define OTA_STORAGE_ESP (1)
#endif

#ifdef ARDUINO_SAMD_MKRGSM1400
Expand All @@ -127,13 +123,21 @@
#define OTA_STORAGE_SSU (0)
#endif

#endif // !defined(HAS_NOTECARD)

#if defined(ARDUINO_NANO_RP2040_CONNECT)
#define OTA_STORAGE_SFU (1)
#else
#define OTA_STORAGE_SFU (0)
#endif

#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
#define OTA_STORAGE_PORTENTA_QSPI (1)
#else
#define OTA_STORAGE_PORTENTA_QSPI (0)
#endif

#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_UNOR4_WIFI)
#if defined(ARDUINO_ARCH_ESP32)
#define OTA_STORAGE_ESP (1)
#endif

Expand Down
1 change: 0 additions & 1 deletion src/ota/interface/OTAInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class OTACloudProcessInterface: public CloudProcess {
virtual void handleMessage(Message*);
// virtual CloudProcess::State getState();
// virtual void hook(State s, void* action);
inline virtual void setConnection(ConnectionHandler * connection) { (void)connection; }
virtual void update() { handleMessage(nullptr); }

inline void approveOta() { policies |= Approved; }
Expand Down
2 changes: 1 addition & 1 deletion src/ota/interface/OTAInterfaceNotecard.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class OTADefaultCloudProcessInterface: public OTACloudProcessInterface {
OTADefaultCloudProcessInterface(MessageStream *ms, Client* client=nullptr);
virtual ~OTADefaultCloudProcessInterface();

inline virtual void setConnection(ConnectionHandler * connection) override { _connection = connection; }
inline void setConnection(ConnectionHandler * connection) { _connection = connection; }

protected:
virtual State startOTA() override;
Expand Down

0 comments on commit 4399dfc

Please sign in to comment.