Bug fixed. Now the time message gets appended even if no logging console is attached
This commit is contained in:
parent
e674788ace
commit
615227d861
1 changed files with 3 additions and 1 deletions
|
@ -268,7 +268,9 @@ void setRoom(int statuss){
|
|||
//NTP Functions: Read the Time from NTP Server
|
||||
String read_time(){
|
||||
String time= "";
|
||||
Serial.println("readTime");
|
||||
if(debug){
|
||||
Serial.println("readTime");
|
||||
}
|
||||
sendNTPpacket(timeServer); // send an NTP packet to a time server
|
||||
|
||||
// wait to see if a reply is available
|
||||
|
|
Reference in a new issue