File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,21 @@ void ArduinoIoTCloudTCP::onOTARequest()
615
615
_ota_error = portenta_h7_onOTARequest (_ota_url.c_str ());
616
616
#endif
617
617
}
618
+
619
+ void ArduinoIoTCloudTCP::systemReset ()
620
+ {
621
+ #ifdef ARDUINO_ARCH_SAMD
622
+ samd_systemReset ();
623
+ #endif
624
+
625
+ #ifdef ARDUINO_NANO_RP2040_CONNECT
626
+ rp2040_connect_systemReset ();
627
+ #endif
628
+
629
+ #if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
630
+ portenta_h7_systemReset ();
631
+ #endif
632
+ }
618
633
#endif
619
634
620
635
/* *****************************************************************************
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
165
165
166
166
#if OTA_ENABLED
167
167
void onOTARequest ();
168
+ void systemReset ();
168
169
#endif
169
170
170
171
otaConfirmationStatus _get_ota_confirmation = {nullptr };
You can’t perform that action at this time.
0 commit comments