added comments
This commit is contained in:
parent
3d76b56598
commit
b99d8f951b
1 changed files with 3 additions and 0 deletions
|
@ -478,10 +478,13 @@ void update_screen(timer_state_e state){
|
||||||
display.setCursor(64 - (display.strWidth(header_to_char) / 2), 0);
|
display.setCursor(64 - (display.strWidth(header_to_char) / 2), 0);
|
||||||
display.print(header_to_char);
|
display.print(header_to_char);
|
||||||
display.setCursor(1,0);
|
display.setCursor(1,0);
|
||||||
|
//check if there is a connection to the topstation
|
||||||
if(millis() - connection_established >= CONN_TIMEOUT || connection_established == 0){
|
if(millis() - connection_established >= CONN_TIMEOUT || connection_established == 0){
|
||||||
|
//if not remove the "Y"
|
||||||
display.print(" ");
|
display.print(" ");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
//if print the "Y"
|
||||||
display.print("Y");
|
display.print("Y");
|
||||||
}
|
}
|
||||||
display.setCursor(0,1);
|
display.setCursor(0,1);
|
||||||
|
|
Reference in a new issue