mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Allow tilt target changes for integrated tilt when blind is in transit.
This commit is contained in:
parent
3ee5bb45c8
commit
30473e16d3
2 changed files with 12 additions and 10 deletions
|
|
@ -1343,6 +1343,7 @@ void SomfyShade::moveToTiltTarget(float target) {
|
||||||
else if(target > this->currentTiltPos)
|
else if(target > this->currentTiltPos)
|
||||||
cmd = somfy_commands::Down;
|
cmd = somfy_commands::Down;
|
||||||
if(target >= 0.0f && target <= 100.0f) {
|
if(target >= 0.0f && target <= 100.0f) {
|
||||||
|
if(this->currentPos == this->target || this->tiltType == tilt_types::tiltmotor) {
|
||||||
if(cmd != somfy_commands::My) {
|
if(cmd != somfy_commands::My) {
|
||||||
Serial.print("Moving Tilt to ");
|
Serial.print("Moving Tilt to ");
|
||||||
Serial.print(target);
|
Serial.print(target);
|
||||||
|
|
@ -1354,6 +1355,7 @@ void SomfyShade::moveToTiltTarget(float target) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SomfyRemote::sendCommand(cmd);
|
SomfyRemote::sendCommand(cmd);
|
||||||
|
}
|
||||||
this->tiltTarget = target;
|
this->tiltTarget = target;
|
||||||
}
|
}
|
||||||
this->settingTiltPos = true;
|
this->settingTiltPos = true;
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue