We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45d5672 commit b042af3Copy full SHA for b042af3
src/utility/ota/OTA-samd.cpp
@@ -52,7 +52,7 @@ int samd_onOTARequest(char const * ota_url)
52
if (!WiFiStorage.downloadOTA(ota_url, &nina_ota_err_code))
53
{
54
DEBUG_ERROR("ArduinoIoTCloudTCP::%s error download to nina: %d", __FUNCTION__, nina_ota_err_code);
55
- return static_cast<int>(OTAError::DownloadFailed);
+ return (NINAFW_OTA_ERROR_BASE - nina_ota_err_code);
56
}
57
58
/* Perform the reset to reboot to SxU. */
src/utility/ota/OTA.h
@@ -29,6 +29,7 @@
29
******************************************************************************/
30
31
#define RP2040_OTA_ERROR_BASE (-100)
32
+#define NINAFW_OTA_ERROR_BASE (-200)
33
34
/******************************************************************************
35
* TYPEDEF
0 commit comments