mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +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;
|
||||
break;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user