Allow tilt target changes for integrated tilt when blind is in transit.

This commit is contained in:
Robert Strouse 2023-05-31 09:58:19 -07:00
parent 3ee5bb45c8
commit 30473e16d3
2 changed files with 12 additions and 10 deletions

View file

@ -1343,6 +1343,7 @@ void SomfyShade::moveToTiltTarget(float target) {
else if(target > this->currentTiltPos)
cmd = somfy_commands::Down;
if(target >= 0.0f && target <= 100.0f) {
if(this->currentPos == this->target || this->tiltType == tilt_types::tiltmotor) {
if(cmd != somfy_commands::My) {
Serial.print("Moving Tilt to ");
Serial.print(target);
@ -1354,6 +1355,7 @@ void SomfyShade::moveToTiltTarget(float target) {
}
else
SomfyRemote::sendCommand(cmd);
}
this->tiltTarget = target;
}
this->settingTiltPos = true;

Binary file not shown.