From bec6bed54d10c299092b3ec61dabfb27b9571464 Mon Sep 17 00:00:00 2001 From: cjkas Date: Mon, 12 Oct 2026 20:55:20 +0200 Subject: [PATCH] fix: move a tilt-only shade's tilt target on a received StepDown A StepDown frame for a tilt-only shade computed the new tilt position but set it as the lift target, so the simulated tilt never moved. StepUp and the internal StepDown already set the tilt target. Co-Authored-By: Claude Opus 5.5 --- src/Somfy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Somfy.cpp b/src/Somfy.cpp index 9e09ef2..ce5b00d 100644 --- a/src/Somfy.cpp +++ b/src/Somfy.cpp @@ -2058,7 +2058,7 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) { } else if(this->tiltType == tilt_types::tiltonly) { if(this->tiltTime == 0 || this->stepSize == 0) return; - this->p_target(min(100.0f, this->currentTiltPos + (100.0f/(static_cast(this->tiltTime/static_cast(this->stepSize * this->lastFrame.stepSize)))))); + this->p_tiltTarget(min(100.0f, this->currentTiltPos + (100.0f/(static_cast(this->tiltTime/static_cast(this->stepSize * this->lastFrame.stepSize)))))); } else if(this->currentPos < 100.0f) { if(this->downTime == 0 || this->stepSize == 0) return;