summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2018-06-03 18:13:11 +0200
committerManuel Traut <manut@linutronix.de>2018-06-03 18:13:11 +0200
commitdfb14c4e295db1b485afefd3d7d2a8bdd78a93dc (patch)
tree242e7c88fd3cd7c69c4d5978bf325965383f3e2f
parentcf5c26734e7a4ea4ce73fa0825397d37f364eb37 (diff)
reduce loadcell stabilization time
code runs into sw wdog resets during setup Signed-off-by: Manuel Traut <manut@linutronix.de>
-rw-r--r--mqttweightwatcher.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/mqttweightwatcher.ino b/mqttweightwatcher.ino
index a495ed4..4e9cafb 100644
--- a/mqttweightwatcher.ino
+++ b/mqttweightwatcher.ino
@@ -71,7 +71,7 @@ void setup_mqtt() {
void setup_loadcell() {
Serial.println("Loadcell setup");
LoadCell.begin();
- long stabilisingtime = 1000; // tare preciscion can be improved by adding a few seconds of stabilising time
+ long stabilisingtime = 800; // tare preciscion can be improved by adding a few seconds of stabilising time
Serial.println("Loadcell stabilize");
LoadCell.start(stabilisingtime);
Serial.print("Loadcell set scale: ");