Bug fixed. Now the time message gets appended even if no logging console is attached

This commit is contained in:
Romedius Weiss 2013-01-23 21:21:47 +01:00
parent e674788ace
commit 615227d861
1 changed files with 3 additions and 1 deletions

View File

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