From b99d8f951ba56c6b8f32510757e08e45cf37ab20 Mon Sep 17 00:00:00 2001 From: CodeCrafter912 Date: Sun, 8 Jul 2018 11:29:03 +0200 Subject: [PATCH] added comments --- speedclock.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/speedclock.ino b/speedclock.ino index 6816dd4..5dc6c37 100644 --- a/speedclock.ino +++ b/speedclock.ino @@ -478,10 +478,13 @@ void update_screen(timer_state_e state){ display.setCursor(64 - (display.strWidth(header_to_char) / 2), 0); display.print(header_to_char); display.setCursor(1,0); + //check if there is a connection to the topstation if(millis() - connection_established >= CONN_TIMEOUT || connection_established == 0){ + //if not remove the "Y" display.print(" "); } else { + //if print the "Y" display.print("Y"); } display.setCursor(0,1);