mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-15 20:02:13 +01:00
Filter out repeats for tilt wheels.
This commit is contained in:
parent
ae87dc1d82
commit
8ca1957d38
2 changed files with 2 additions and 0 deletions
|
|
@ -1023,6 +1023,7 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) {
|
||||||
break;
|
break;
|
||||||
case somfy_commands::MyUp:
|
case somfy_commands::MyUp:
|
||||||
case somfy_commands::StepUp:
|
case somfy_commands::StepUp:
|
||||||
|
if(this->lastFrame.repeats != 0) return;
|
||||||
dir = 0;
|
dir = 0;
|
||||||
this->lastFrame.processed = true;
|
this->lastFrame.processed = true;
|
||||||
// With the step commands and integrated shades
|
// With the step commands and integrated shades
|
||||||
|
|
@ -1037,6 +1038,7 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) {
|
||||||
break;
|
break;
|
||||||
case somfy_commands::MyDown:
|
case somfy_commands::MyDown:
|
||||||
case somfy_commands::StepDown:
|
case somfy_commands::StepDown:
|
||||||
|
if(this->lastFrame.repeats != 0) return;
|
||||||
dir = 1;
|
dir = 1;
|
||||||
this->lastFrame.processed = true;
|
this->lastFrame.processed = true;
|
||||||
// With the step commands and integrated shades
|
// With the step commands and integrated shades
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue