mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-17 15:56:30 +00:00
Update xdrv_27_shutter.ino
Fix infinite loop for shutter
This commit is contained in:
parent
9974d29726
commit
ddbca8e393
@ -394,7 +394,7 @@ void ShutterWaitForMotorStop(uint8_t i)
|
|||||||
{
|
{
|
||||||
AddLog_P2(LOG_LEVEL_INFO, PSTR("SHT: Wait for Motorstop.."));
|
AddLog_P2(LOG_LEVEL_INFO, PSTR("SHT: Wait for Motorstop.."));
|
||||||
if (Shutter.mode == SHT_OFF_ON__OPEN_CLOSE || Shutter.mode == SHT_OFF_ON__OPEN_CLOSE_STEPPER) {
|
if (Shutter.mode == SHT_OFF_ON__OPEN_CLOSE || Shutter.mode == SHT_OFF_ON__OPEN_CLOSE_STEPPER) {
|
||||||
if ( Shutter.mode = SHT_OFF_ON__OPEN_CLOSE_STEPPER) {
|
if ( Shutter.mode == SHT_OFF_ON__OPEN_CLOSE_STEPPER) {
|
||||||
//AddLog_P2(LOG_LEVEL_INFO, PSTR("SHT: Frequency change %d"), Shutter.pwm_frequency);
|
//AddLog_P2(LOG_LEVEL_INFO, PSTR("SHT: Frequency change %d"), Shutter.pwm_frequency);
|
||||||
while (Shutter.pwm_frequency > 0) {
|
while (Shutter.pwm_frequency > 0) {
|
||||||
Shutter.accelerator[i] = 0;
|
Shutter.accelerator[i] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user