From 615227d861e6cf4111b13c68703b39bd0e3af8a6 Mon Sep 17 00:00:00 2001 From: Romedius Weiss Date: Wed, 23 Jan 2013 21:21:47 +0100 Subject: [PATCH] Bug fixed. Now the time message gets appended even if no logging console is attached --- TSI_inout_ino/TSI_inout_ino.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TSI_inout_ino/TSI_inout_ino.ino b/TSI_inout_ino/TSI_inout_ino.ino index 23e0755..9bc3507 100644 --- a/TSI_inout_ino/TSI_inout_ino.ino +++ b/TSI_inout_ino/TSI_inout_ino.ino @@ -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