Skip to content

Commit 577f305

Browse files
committed
Bugfix: Don't loop forever, just return 0.
1 parent 9b49af2 commit 577f305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort)
108108
if (nina_fw_version < "1.4.2")
109109
{
110110
DEBUG_ERROR("ArduinoIoTCloudTCP::%s NINA firmware needs to be >= 1.4.2 to support cloud on Uno WiFi Rev. 2, current %s", __FUNCTION__, nina_fw_version.c_str());
111-
for(;;) { }
111+
return 0;
112112
}
113113
#endif /* AVR */
114114

0 commit comments

Comments
 (0)