mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Force tilt only blinds to closed.
This commit is contained in:
parent
bb36ed0f82
commit
47eeeaecac
2 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue