File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ int samd_onOTARequest(char const * ota_url)
5252 if (!WiFiStorage.downloadOTA (ota_url, &nina_ota_err_code))
5353 {
5454 DEBUG_ERROR (" ArduinoIoTCloudTCP::%s error download to nina: %d" , __FUNCTION__, nina_ota_err_code);
55- return static_cast < int >(OTAError::DownloadFailed );
55+ return (NINAFW_OTA_ERROR_BASE - nina_ota_err_code );
5656 }
5757
5858 /* Perform the reset to reboot to SxU. */
Original file line number Diff line number Diff line change 2929 ******************************************************************************/
3030
3131#define RP2040_OTA_ERROR_BASE (-100)
32+ #define NINAFW_OTA_ERROR_BASE (-200)
3233
3334/******************************************************************************
3435 * TYPEDEF
You can’t perform that action at this time.
0 commit comments