mirror of https://github.com/arendst/Tasmota.git
Update xsns_01_counter.ino
This commit is contained in:
parent
ce7070b0a5
commit
90f29695bb
|
@ -166,7 +166,7 @@ void CounterInit(void)
|
||||||
if (PinUsed(GPIO_CNTR1, i)) {
|
if (PinUsed(GPIO_CNTR1, i)) {
|
||||||
Counter.any_counter = true;
|
Counter.any_counter = true;
|
||||||
pinMode(Pin(GPIO_CNTR1, i), bitRead(Counter.no_pullup, i) ? INPUT : INPUT_PULLUP);
|
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;
|
Counter.pin_state = 0;
|
||||||
attachInterrupt(Pin(GPIO_CNTR1, i), counter_callbacks[i], FALLING);
|
attachInterrupt(Pin(GPIO_CNTR1, i), counter_callbacks[i], FALLING);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue