summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2018-06-03 18:13:36 +0200
committerManuel Traut <manut@linutronix.de>2018-06-03 18:13:36 +0200
commitc2c2a5d00b7bf8a115ccf5fa4188bbe3f93eb06f (patch)
tree589071ba0d256516254c82c8ea06793c6525f70c
parentdfb14c4e295db1b485afefd3d7d2a8bdd78a93dc (diff)
remove DEBUG ifdefHEADmaster
Signed-off-by: Manuel Traut <manut@linutronix.de>
-rw-r--r--mqttweightwatcher.ino8
1 files 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 <MQTT.h>
#include <HX711_ADC.h>
-#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);
}