From c2c2a5d00b7bf8a115ccf5fa4188bbe3f93eb06f Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Sun, 3 Jun 2018 18:13:36 +0200 Subject: remove DEBUG ifdef Signed-off-by: Manuel Traut --- mqttweightwatcher.ino | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mqttweightwatcher.ino b/mqttweightwatcher.ino index 4e9cafb..77d3433 100644 --- a/mqttweightwatcher.ino +++ b/mqttweightwatcher.ino @@ -2,8 +2,6 @@ #include #include -#undef DEBUG - String swarm_name = "ArcticMonkeys"; const char* ssid = "disasterarea"; @@ -107,10 +105,8 @@ void do_publish() { val = "0.00"; // do string compare to compare only two digits after the comma if (old_val != val) { - #ifdef DEBUG - Serial.print("Load_cell output val: "); - Serial.println(val); - #endif + Serial.print("weight: "); + Serial.println(val); old_val = val; MQTT.publish(String("/"+swarm_name+"/weight"), val); } -- cgit v1.2.3