From b35ba46ac60d3bfe57085e58f7d33280447bd618 Mon Sep 17 00:00:00 2001 From: David Martin Date: Sat, 1 Apr 2017 09:33:51 +0800 Subject: [PATCH] receivedInitialValue in setup look not reset This update corrects a problem in that initial read of valve times misses V_VAR1 as the receivedInitialValue is not reset to false during the loop when going into the V_VAR1 receive loop. --- examples/IrrigationController/IrrigationController.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/IrrigationController/IrrigationController.ino b/examples/IrrigationController/IrrigationController.ino index cab6ae7..57bbc1c 100644 --- a/examples/IrrigationController/IrrigationController.ino +++ b/examples/IrrigationController/IrrigationController.ino @@ -253,6 +253,7 @@ void setup() DEBUG_PRINT(F("Calling for Valve ")); DEBUG_PRINT(i); DEBUG_PRINTLN(F(" Data...")); + receivedInitialValue = false; while (!receivedInitialValue) { lcd.setCursor(15, 0);