mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +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(_counter==0) {
|
||||||
|
if(MIBLEsensors.size() == 0){
|
||||||
|
_counter++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
HM10.state.sensor = _nextSensorSlot;
|
HM10.state.sensor = _nextSensorSlot;
|
||||||
_nextSensorSlot++;
|
_nextSensorSlot++;
|
||||||
HM10.mode.pending_task = 1;
|
HM10.mode.pending_task = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user