mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Fixed DIV/0 (#20524)
This commit is contained in:
parent
5545c82e68
commit
c705c8f89c
@ -687,7 +687,7 @@ void ShutterInit(void)
|
|||||||
Shutter[i].min_realPositionChange = 0;
|
Shutter[i].min_realPositionChange = 0;
|
||||||
break;
|
break;
|
||||||
case SHT_COUNTER:
|
case SHT_COUNTER:
|
||||||
Shutter[i].min_realPositionChange = SHT_DIV_ROUND(Shutter[i].min_realPositionChange, Shutter[i].motordelay);
|
Shutter[i].min_realPositionChange = SHT_DIV_ROUND(Shutter[i].min_realPositionChange, Shutter[i].motordelay > 0?Shutter[i].motordelay : 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user