From 0e97e8615f48dc787f933087fc787a5b4875fd90 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Mon, 5 Nov 2018 22:20:34 +0100 Subject: [PATCH] remove unecessary variable and PilighttoMQTT call --- OpenMQTTGateway.ino | 7 ------- ZsensorGPIOKeyCode.ino | 1 - 2 files changed, 8 deletions(-) diff --git a/OpenMQTTGateway.ino b/OpenMQTTGateway.ino index 3d7bdd8..744e380 100644 --- a/OpenMQTTGateway.ino +++ b/OpenMQTTGateway.ino @@ -661,13 +661,6 @@ void loop() #ifdef ZgatewayPilight PilighttoMQTT(); #endif - #ifdef ZgatewayPilight - if(PilighttoMQTT()){ - trc(F("PilighttoMQTT OK")); - digitalWrite(led_receive, LOW); - timer_led_receive = millis(); - } - #endif #ifdef ZgatewaySRFB SRFBtoMQTT(); #endif diff --git a/ZsensorGPIOKeyCode.ino b/ZsensorGPIOKeyCode.ino index f8d78d6..1712841 100644 --- a/ZsensorGPIOKeyCode.ino +++ b/ZsensorGPIOKeyCode.ino @@ -28,7 +28,6 @@ int InputStateGPIOKeyCode = 0x0f; // Set to 3 so that it reads on startup int lastInputStateGPIOKeyCode = 0x0f; int lastLatchStateGPIOKeyCode = 0; -unsigned long lastDebounceTime = 0; void setupGPIOKeyCode() { pinMode(GPIOKeyCode_LATCH_PIN, INPUT_PULLUP); //