mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
better fix on init (#17488)
try to avoid get 5000 if the init value is 65535. More focus on setting the standard of 500 on nearly any case
This commit is contained in:
parent
42e3862970
commit
0c588f2ff4
@ -402,7 +402,10 @@ void ShutterInit(void)
|
|||||||
Settings->shutter_accuracy = 1;
|
Settings->shutter_accuracy = 1;
|
||||||
Settings->shutter_mode = ShutterGlobal.position_mode;
|
Settings->shutter_mode = ShutterGlobal.position_mode;
|
||||||
// initialize MotorStop time with 500ms if not set
|
// initialize MotorStop time with 500ms if not set
|
||||||
Settings->shutter_motorstop = (Settings->shutter_motorstop == 0) ? 500 : tmin(5000,Settings->shutter_motorstop);
|
// typical not set start values are 0 and 65535
|
||||||
|
if (Settings->shutter_motorstop > 5000 || Settings->shutter_motorstop == 0) {
|
||||||
|
Settings->shutter_motorstop = 500;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user