We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87766d8 commit 7623846Copy full SHA for 7623846
src/ota/implementation/OTAUnoR4.cpp
@@ -98,10 +98,13 @@ OTACloudProcessInterface::State UNOR4OTACloudProcess::flashOTA() {
98
}
99
100
/* Flash new firmware */
101
- if ((ota_err = ota.update(UPDATE_FILE_NAME)) != OTAUpdate::OTA_ERROR_NONE) { // This reboots the MCU
+ if ((ota_err = ota.update(UPDATE_FILE_NAME)) != OTAUpdate::OTA_ERROR_NONE) {
102
DEBUG_VERBOSE("OTAUpdate::update() failed with %d", ota_err);
103
return convertUnor4ErrorToState(ota_err);
104
105
+
106
+ /* This is never called because ota.uptade reboots the microcontroller */
107
+ return Resume;
108
109
110
OTACloudProcessInterface::State UNOR4OTACloudProcess::reboot() {
0 commit comments