mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Engage my position when only the tilt position will be changing.
This commit is contained in:
parent
2c036f664c
commit
169208025f
2 changed files with 7 additions and 1 deletions
|
|
@ -1139,7 +1139,13 @@ void SomfyShade::setMyPosition(int8_t pos, int8_t tilt) {
|
|||
}
|
||||
void SomfyShade::moveToMyPosition() {
|
||||
if(!this->isIdle()) return;
|
||||
if(this->currentPos == this->myPos) return; // Nothing to see here since we are already here.
|
||||
if(this->currentPos == this->myPos) {
|
||||
if(this->tiltType != tilt_types::none) {
|
||||
if(this->currentTiltPos == this->myTiltPos) return; // Nothing to see here since we are already here.
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
Serial.print("Seeking my Position:");
|
||||
Serial.print(this->myPos);
|
||||
Serial.print("% ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue