Force tilt only blinds to closed.

This commit is contained in:
Robert Strouse 2023-10-10 17:30:39 -07:00
parent bb36ed0f82
commit 47eeeaecac
2 changed files with 3 additions and 5 deletions

View file

@ -2313,10 +2313,9 @@ void SomfyShade::sendCommand(somfy_commands cmd, uint8_t repeat) {
else {
SomfyRemote::sendCommand(cmd, repeat);
if(this->tiltType == tilt_types::tiltonly) {
this->p_myPos(0.0f);
this->p_target(0.0f);
this->p_target(100.0f);
this->p_tiltTarget(0.0f);
this->currentPos = 0.0f;
this->currentPos = 100.0f;
//this->myPos = this->currentPos = this->target = 0.0f;
}
else this->p_target(0.0f);
@ -2333,9 +2332,8 @@ void SomfyShade::sendCommand(somfy_commands cmd, uint8_t repeat) {
else {
SomfyRemote::sendCommand(cmd, repeat);
if(this->tiltType == tilt_types::tiltonly) {
this->p_myPos(100.0f);
this->p_target(100.0f);
this->p_tiltTarget(0.0f);
this->p_tiltTarget(100.0f);
this->currentPos = 100.0f;
//this->myPos = this->currentPos = this->target = 100.0f;
}