Skip to content

Commit 9aedeb4

Browse files
committed
fix: OTA build targets
1 parent d542ea1 commit 9aedeb4

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/AIoTC_Config.h

+11-7
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,14 @@
107107
#define BOARD_HAS_SECURE_ELEMENT
108108
#endif
109109

110-
#endif // HAS_NOTECARD
111-
112110
#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
113111
#define OTA_STORAGE_SNU (1)
114112
#else
115113
#define OTA_STORAGE_SNU (0)
116114
#endif
117115

118-
#if defined(ARDUINO_NANO_RP2040_CONNECT)
119-
#define OTA_STORAGE_SFU (1)
120-
#else
121-
#define OTA_STORAGE_SFU (0)
116+
#if defined(ARDUINO_UNOR4_WIFI)
117+
#define OTA_STORAGE_ESP (1)
122118
#endif
123119

124120
#ifdef ARDUINO_SAMD_MKRGSM1400
@@ -127,13 +123,21 @@
127123
#define OTA_STORAGE_SSU (0)
128124
#endif
129125

126+
#endif // !defined(HAS_NOTECARD)
127+
128+
#if defined(ARDUINO_NANO_RP2040_CONNECT)
129+
#define OTA_STORAGE_SFU (1)
130+
#else
131+
#define OTA_STORAGE_SFU (0)
132+
#endif
133+
130134
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
131135
#define OTA_STORAGE_PORTENTA_QSPI (1)
132136
#else
133137
#define OTA_STORAGE_PORTENTA_QSPI (0)
134138
#endif
135139

136-
#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_UNOR4_WIFI)
140+
#if defined(ARDUINO_ARCH_ESP32)
137141
#define OTA_STORAGE_ESP (1)
138142
#endif
139143

src/ota/interface/OTAInterface.h

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class OTACloudProcessInterface: public CloudProcess {
8787
virtual void handleMessage(Message*);
8888
// virtual CloudProcess::State getState();
8989
// virtual void hook(State s, void* action);
90-
inline virtual void setConnection(ConnectionHandler * connection) { (void)connection; }
9190
virtual void update() { handleMessage(nullptr); }
9291

9392
inline void approveOta() { policies |= Approved; }

src/ota/interface/OTAInterfaceNotecard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class OTADefaultCloudProcessInterface: public OTACloudProcessInterface {
4545
OTADefaultCloudProcessInterface(MessageStream *ms, Client* client=nullptr);
4646
virtual ~OTADefaultCloudProcessInterface();
4747

48-
inline virtual void setConnection(ConnectionHandler * connection) override { _connection = connection; }
48+
inline void setConnection(ConnectionHandler * connection) { _connection = connection; }
4949

5050
protected:
5151
virtual State startOTA() override;

0 commit comments

Comments
 (0)