File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 2626/* *****************************************************************************
2727 * CLASS DECLARATION
2828 ******************************************************************************/
29- class ConnectionHandler ; // Forward declaration
3029
3130class OTACloudProcessInterface : public CloudProcess {
3231public:
@@ -87,7 +86,6 @@ class OTACloudProcessInterface: public CloudProcess {
8786 virtual void handleMessage (Message*);
8887 // virtual CloudProcess::State getState();
8988 // virtual void hook(State s, void* action);
90- inline virtual void setConnection (ConnectionHandler * connection) { (void )connection; }
9189 virtual void update () { handleMessage (nullptr ); }
9290
9391 inline void approveOta () { policies |= Approved; }
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments