mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
do not crash with zero sensors
This commit is contained in:
parent
f53ac70013
commit
26dcf91531
@ -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