mirror of https://github.com/arendst/Tasmota.git
Merge pull request #12941 from stefanbode/patch-10
Fixing WDT reset on shutters with stepper motors during deceleration #12849
This commit is contained in:
commit
6b29c66e89
|
@ -1084,6 +1084,7 @@ void CmndShutterPosition(void)
|
|||
}
|
||||
int8_t new_shutterdirection = Shutter[index].real_position < Shutter[index].target_position ? 1 : -1;
|
||||
if (Shutter[index].direction == -new_shutterdirection) {
|
||||
Shutter[index].start_position = Shutter[index].target_position;
|
||||
ShutterPowerOff(index);
|
||||
}
|
||||
if (Shutter[index].direction != new_shutterdirection) {
|
||||
|
|
Loading…
Reference in New Issue