bugfix for network timeout

This commit is contained in:
technyon
2022-05-15 22:26:58 +02:00
parent ea62e65e12
commit 27d88db79c
2 changed files with 1 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ void Network::update()
if(!_device->isConnected())
{
if(ts - _lastConnectedTs > _networkTimeout * 1000)
if(_networkTimeout > 0 && (ts - _lastConnectedTs > _networkTimeout * 1000))
{
Serial.println("Network timeout has been reached, restarting ...");
delay(200);