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 c891c5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/AIoTC_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,18 @@
#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_UNOR4_WIFI)
#define OTA_STORAGE_ESP (1)
#endif

#endif // not HAS_NOTECARD

#if defined(ARDUINO_NANO_RP2040_CONNECT)
#define OTA_STORAGE_SFU (1)
#else
Expand All @@ -133,7 +137,7 @@
#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 c891c5a

Please sign in to comment.