added comments

This commit is contained in:
CodeCrafter912 2018-07-08 11:29:03 +02:00
parent 3d76b56598
commit b99d8f951b

View file

@ -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);