mirror of https://github.com/arendst/Tasmota.git
Fix no sensor issue
This commit is contained in:
parent
fc2d5b181c
commit
520558d381
|
@ -868,6 +868,11 @@ void XsnsSensorState(void)
|
|||
|
||||
bool XsnsNextCall(uint8_t Function, uint8_t &xsns_index)
|
||||
{
|
||||
if (0 == xsns_present) {
|
||||
xsns_index = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
xsns_index++;
|
||||
if (xsns_index == xsns_present) { xsns_index = 0; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue