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 @@ -53,7 +53,7 @@ int samd_onOTARequest(char const * ota_url)
53
53
if (!WiFiStorage.downloadOTA (ota_url, &nina_ota_err_code))
54
54
{
55
55
DEBUG_ERROR (" ArduinoIoTCloudTCP::%s error download to nina: %d" , __FUNCTION__, nina_ota_err_code);
56
- return static_cast < int >(OTAError::DownloadFailed );
56
+ return (NINAFW_OTA_ERROR_BASE - nina_ota_err_code );
57
57
}
58
58
59
59
/* Perform the reset to reboot to SxU. */
Original file line number Diff line number Diff line change 33
33
******************************************************************************/
34
34
35
35
#define RP2040_OTA_ERROR_BASE (-100 )
36
+ #define NINAFW_OTA_ERROR_BASE (-200 )
36
37
37
38
/* *****************************************************************************
38
39
* TYPEDEF
You can’t perform that action at this time.
0 commit comments