From 239acaab13e74dd3d161838d596fef63e0c249f4 Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:54:25 -0500 Subject: [PATCH] Fix for failed build with ZsensorGPIOInput and ESPWifiManualSetup (#1479) * Fix failed build with GPIOInput enabled and ESPWifiManualSetup --- main/ZsensorGPIOInput.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ZsensorGPIOInput.ino b/main/ZsensorGPIOInput.ino index e18b460..a1ab7a6 100644 --- a/main/ZsensorGPIOInput.ino +++ b/main/ZsensorGPIOInput.ino @@ -60,7 +60,7 @@ void MeasureGPIOInput() { # if defined(ESP8266) || defined(ESP32) yield(); # endif -# if defined(TRIGGER_GPIO) && INPUT_GPIO == TRIGGER_GPIO +# if defined(TRIGGER_GPIO) && INPUT_GPIO == TRIGGER_GPIO && !defined(ESPWifiManualSetup) if (reading == LOW) { if (resetTime == 0) { resetTime = millis();