From 70e3778db0573f1c6757bc3cdbb645a72556dc22 Mon Sep 17 00:00:00 2001 From: Fenoglio Date: Sun, 8 Jul 2018 14:00:29 +0200 Subject: [PATCH] Fixed diconnected handling. --- speedclock.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedclock.ino b/speedclock.ino index 5dc6c37..2472717 100644 --- a/speedclock.ino +++ b/speedclock.ino @@ -172,8 +172,8 @@ void loop(void) { // read data from TOP_STATION ... if( radio.available()){ // check if radio data is available - if so read the data - connection_established = millis(); while( radio.available(&pipeNo)){ // Read all available payloads + connection_established = millis(); radio.read( &radio_data, sizeof(radio_data) ); // Read the data the TOPSTATION sent } current_time_offset = radio_data.topstationtime - millis(); // the offset between TOP_STATION and BASESTATION