We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60d6af commit 75abde6Copy full SHA for 75abde6
src/ArduinoIoTCloudTCP.cpp
@@ -335,7 +335,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_ConnectPhy()
335
if (_connection->check() == NetworkConnectionState::CONNECTED)
336
{
337
bool const is_retry_attempt = (_last_connection_attempt_cnt > 0);
338
- if (!is_retry_attempt || (is_retry_attempt && (_next_connection_attempt_tick > millis())))
+ if (!is_retry_attempt || (is_retry_attempt && (millis() > _next_connection_attempt_tick)))
339
return State::SyncTime;
340
}
341
0 commit comments