From b608115565b48b38967922f2b98bdb886ddf5b81 Mon Sep 17 00:00:00 2001 From: Przemyslaw Zygmunt Date: Thu, 22 Mar 2018 15:01:42 +0100 Subject: [PATCH] Time_diff fix. Closes #5 --- libraries/SuplaDevice/SuplaDevice.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/libraries/SuplaDevice/SuplaDevice.cpp b/libraries/SuplaDevice/SuplaDevice.cpp index 3ed9ff46..9ebc3204 100644 --- a/libraries/SuplaDevice/SuplaDevice.cpp +++ b/libraries/SuplaDevice/SuplaDevice.cpp @@ -1274,23 +1274,21 @@ void SuplaDeviceClass::iterate(void) { last_ping_time = _millis; srpc_dcs_async_ping_server(srpc); } - } - - if ( last_iterate_time != 0 ) { - - for(a=0;a 0 ) { + + for(a=0;a