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