mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Fix single sensor exception
This commit is contained in:
parent
8267d99334
commit
127b672c2c
@ -104,8 +104,10 @@ void FlowRateMeterInit(void)
|
||||
|
||||
flowratemeter_valuesread = false;
|
||||
for (uint32_t i = 0; i < MAX_FLOWRATEMETER; i++) {
|
||||
pinMode(Pin(GPIO_FLOWRATEMETER_IN, i), INPUT);
|
||||
attachInterrupt(Pin(GPIO_FLOWRATEMETER_IN, i), irq_service[i], RISING);
|
||||
if (PinUsed(GPIO_FLOWRATEMETER_IN, i)) {
|
||||
pinMode(Pin(GPIO_FLOWRATEMETER_IN, i), INPUT);
|
||||
attachInterrupt(Pin(GPIO_FLOWRATEMETER_IN, i), irq_service[i], RISING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user