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)
52
52
if (!WiFiStorage.downloadOTA (ota_url, &nina_ota_err_code))
53
53
{
54
54
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 );
56
56
}
57
57
58
58
/* Perform the reset to reboot to SxU. */
Original file line number Diff line number Diff line change 29
29
******************************************************************************/
30
30
31
31
#define RP2040_OTA_ERROR_BASE (-100)
32
+ #define NINAFW_OTA_ERROR_BASE (-200)
32
33
33
34
/******************************************************************************
34
35
* TYPEDEF
You can’t perform that action at this time.
0 commit comments