From 47eeeaecacdba26c2c3217e762e8e96b94b9ff18 Mon Sep 17 00:00:00 2001 From: Robert Strouse Date: Tue, 10 Oct 2023 17:30:39 -0700 Subject: [PATCH] Force tilt only blinds to closed. --- Somfy.cpp | 8 +++----- SomfyController.ino.esp32.bin | Bin 1122096 -> 1122096 bytes 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Somfy.cpp b/Somfy.cpp index fa76369..5f30afd 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -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; } diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index ad43bd3340af1cd2cc08f4c4ed12685bbcb5c2a2..4621d5aeec00ab7d858126107ff565153c28b596 100644 GIT binary patch delta 309 zcmdn6&t=0tmkApb7`FHPj`kHy`o<$G<7M>S|CV|Y&)1me7bkC1*YGRf+BMmbE1+3{ zv0Z@?gqgN0FfteZ<8We{ZWwSN&1L$`|I9M=K;B;FwM=Oyk&Z409JVMdwfPI;r#k+1 zO42phtN@fxQ@NzDNa272gQ~;dwvYcA(!5PUW>_3hb6E-WwW+JrI0%Cye zU!x>lpeD9=|5MHXw!Qh!z>p?wZ^SgsX~A!!!@u2|+1D~XJ;e9l?e2dkCH=KbhK+~J zTc$d(sIogTxyCS?i?rskwC1t4=CQTrvA5=NwB~WP=5e*=aku92wC3@)=JB=W@wes) uY|Rr~D5uzPVVkehogEK9E|NIEPOj8@%kRT+-3mXV7y7;NS7b8r)c^qK*m|@8 delta 309 zcmdn6&t=0tmkApbtl#z}+w-sdc$8ztqmDkGB8|OzGm3V)>%Lre@q+4p;YX7VxdNIM z7~2&XL6~W~0wZ(bKaM7*>4pIZ(mbZm{Ld^?59IA-Udxnb5wX<$FNn3&227L1tJSQ1e&{lvsM~zrkh&pa_tiW+ABR4A!q| z@pq%)0k*gQ85mN{|AJ|TG--PyrfE$Jej6SB-QLW;mg(sszW;7_|2HY=uVpf9JY?Q6 z)rm!wy@|;+hS^-AHIJn=kF_FmHIJh;kFzz8t2K|iHIJt?kGD0CuQiXqHBVq` sp5Q_`MGh8g(HXuS?%6EO2j;vGPnVx`ZU3~wwc-nVPOkstnV$0=03Jtu82|tP