mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 06:47:17 +00:00
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…
x
Reference in New Issue
Block a user