bugfix for network timeout
This commit is contained in:
@@ -183,7 +183,7 @@ void Network::update()
|
|||||||
|
|
||||||
if(!_device->isConnected())
|
if(!_device->isConnected())
|
||||||
{
|
{
|
||||||
if(ts - _lastConnectedTs > _networkTimeout * 1000)
|
if(_networkTimeout > 0 && (ts - _lastConnectedTs > _networkTimeout * 1000))
|
||||||
{
|
{
|
||||||
Serial.println("Network timeout has been reached, restarting ...");
|
Serial.println("Network timeout has been reached, restarting ...");
|
||||||
delay(200);
|
delay(200);
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user