Skip to content

Commit 0c3a226

Browse files
committed
Improve warning message in case nina firmware version is below 1.4.1
1 parent 3091f62 commit 0c3a226

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,9 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
146146

147147
#if OTA_STORAGE_SNU
148148
String const nina_fw_version = WiFi.firmwareVersion();
149-
if (nina_fw_version < "1.4.1")
150-
{
149+
if (nina_fw_version < "1.4.1") {
151150
_ota_cap = false;
152-
DBG_ERROR(F("ArduinoIoTCloudTCP::%s error nina firmware needs to be >= 1.4.1, current %s"), __FUNCTION__, nina_fw_version.c_str());
153-
return 0;
151+
DBG_WARNING(F("ArduinoIoTCloudTCP::%s In order to be ready for cloud OTA nina firmware needs to be >= 1.4.1, current %s"), __FUNCTION__, nina_fw_version.c_str());
154152
}
155153
else {
156154
_ota_cap = true;

0 commit comments

Comments
 (0)