mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9996 from Staars/HM10
HM10: do not crash with zero sensors
This commit is contained in:
commit
b56109d34e
|
@ -1520,6 +1520,10 @@ void HM10EverySecond(bool restart){
|
|||
}
|
||||
|
||||
if(_counter==0) {
|
||||
if(MIBLEsensors.size() == 0){
|
||||
_counter++;
|
||||
return;
|
||||
}
|
||||
HM10.state.sensor = _nextSensorSlot;
|
||||
_nextSensorSlot++;
|
||||
HM10.mode.pending_task = 1;
|
||||
|
|
Loading…
Reference in New Issue