Add delay after lift movement and before tilt movment.

This commit is contained in:
Robert Strouse 2023-04-28 09:16:03 -07:00
parent 169208025f
commit 22819be9be
2 changed files with 2 additions and 0 deletions

View file

@ -576,6 +576,7 @@ void SomfyShade::checkMovement() {
if(this->settingPos) { if(this->settingPos) {
SomfyRemote::sendCommand(somfy_commands::My); SomfyRemote::sendCommand(somfy_commands::My);
if(!isAtTarget()) { if(!isAtTarget()) {
delay(300);
// We now need to move the tilt to the position we requested. // We now need to move the tilt to the position we requested.
this->moveToTiltTarget(this->tiltTarget); this->moveToTiltTarget(this->tiltTarget);
} }
@ -618,6 +619,7 @@ void SomfyShade::checkMovement() {
if(this->settingPos) { if(this->settingPos) {
SomfyRemote::sendCommand(somfy_commands::My); SomfyRemote::sendCommand(somfy_commands::My);
if(!isAtTarget()) { if(!isAtTarget()) {
delay(300);
// We now need to move the tilt to the position we requested. // We now need to move the tilt to the position we requested.
this->moveToTiltTarget(this->tiltTarget); this->moveToTiltTarget(this->tiltTarget);
} }

Binary file not shown.