From 19bdbdb8981782b7929975bfa4741e630efdd1c5 Mon Sep 17 00:00:00 2001 From: Robert Strouse Date: Fri, 22 Dec 2023 16:57:12 -0800 Subject: [PATCH] More updates to integrated tilt position #192 --- Somfy.cpp | 4 ++-- SomfyController.ino.esp32.bin | Bin 1273312 -> 1273312 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Somfy.cpp b/Somfy.cpp index d50756b..b375b97 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -1152,7 +1152,7 @@ void SomfyShade::checkMovement() { if(this->tiltType == tilt_types::integrated) { // If this is an integrated tilt mechanism the we will simply let it finish. If it is not then we will stop it. //Serial.printf("Sending My -- tiltTarget: %.2f, tiltDirection: %d\n", this->tiltTarget, this->tiltDirection); - if(this->tiltTarget != 100.0f || this->currentTiltPos != 100.0f) SomfyRemote::sendCommand(somfy_commands::My, this->repeats); + if(this->tiltTarget != 100.0f || this->currentPos != 100.0f) SomfyRemote::sendCommand(somfy_commands::My, this->repeats); } else { // This is a tilt motor so let it complete if it is going to 100. @@ -1202,7 +1202,7 @@ void SomfyShade::checkMovement() { if(this->tiltType == tilt_types::integrated) { // If this is an integrated tilt mechanism the we will simply let it finish. If it is not then we will stop it. //Serial.printf("Sending My -- tiltTarget: %.2f, tiltDirection: %d\n", this->tiltTarget, this->tiltDirection); - if(this->tiltTarget != 0.0 || this->currentTiltPos != 0.0) SomfyRemote::sendCommand(somfy_commands::My, this->repeats); + if(this->tiltTarget != 0.0 || this->currentPos != 0.0) SomfyRemote::sendCommand(somfy_commands::My, this->repeats); } else { // This is a tilt motor so let it complete if it is going to 0. diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 14c9dd87331ce87d00fc1ee44adfbd7ef8c7cc01..8b655b36818abd7077623e3699a2a9404342dd64 100644 GIT binary patch delta 176 zcmaEG+xNk3-w7KOF10gQ={=hAJY>IQ$W9N_xU&^b$8T;DDrvUx4tvEUCp1}*FQ8e0 zv0Z@?gqeVt8Hic7D=@N3Dl_VCw^CsZXJpiEpQOqP#B4y!4#XTl%n8I?K+FxqJV49~ z#C$-^55xjMEC|Fx+b5|C>v|}%6t*34RES~|~lrP0;-cQj5%F5Nv@kT0NF zfw5hI5rmn5m>Gy!wkt5QN-8tzZMRZk4QFK3YoDab3dC$c%nrmHK+FlmTtLhX#5_RE z3&eat%n!r@Kr9HvLfa>)3hR0(ZhTj3_eCuKZEaP0m_cE-;cc$lx8;rnmR+>TyOLY% Hcc=jXr9(pc