From 90f29695bbba0aa957fe192b226cf569ac03a5c5 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Tue, 7 Jul 2020 16:31:35 +0200 Subject: [PATCH] Update xsns_01_counter.ino --- tasmota/xsns_01_counter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_01_counter.ino b/tasmota/xsns_01_counter.ino index fb61a05d6..ae03ef324 100644 --- a/tasmota/xsns_01_counter.ino +++ b/tasmota/xsns_01_counter.ino @@ -166,7 +166,7 @@ void CounterInit(void) if (PinUsed(GPIO_CNTR1, i)) { Counter.any_counter = true; pinMode(Pin(GPIO_CNTR1, i), bitRead(Counter.no_pullup, i) ? INPUT : INPUT_PULLUP); - if ((0 == Settings.pulse_counter_debounce_low) && (0 == Settings.pulse_counter_debounce_high)) { + if ((0 == Settings.pulse_counter_debounce_low) && (0 == Settings.pulse_counter_debounce_high) && !Settings.flag4.zerocross_dimmer) { Counter.pin_state = 0; attachInterrupt(Pin(GPIO_CNTR1, i), counter_callbacks[i], FALLING); } else {