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