mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Fix setting My position for some motors #15
This commit is contained in:
parent
53ac717cf3
commit
ac6d6ee34d
9 changed files with 99 additions and 20 deletions
1
Web.cpp
1
Web.cpp
|
|
@ -810,6 +810,7 @@ void Web::begin() {
|
|||
if (shade) {
|
||||
// Send the command to the shade.
|
||||
if(tilt < 0) tilt = shade->myPos;
|
||||
if(shade->tiltType == tilt_types::none) tilt = -1;
|
||||
if(pos >= 0 && pos <= 100)
|
||||
shade->setMyPosition(pos, tilt);
|
||||
DynamicJsonDocument sdoc(512);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue