mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Changed last pulse so it sets the final bit to 0. It only should do this if the last bit was 0.
This commit is contained in:
parent
b6bc57e437
commit
ca76d01a1a
4 changed files with 13 additions and 7 deletions
|
|
@ -1215,7 +1215,7 @@ class Somfy {
|
|||
sendShadeMyPosition(shadeId, pos) {
|
||||
console.log(`Sending My Position for shade id ${shadeId} to ${pos}`);
|
||||
let overlay = waitMessage(document.getElementById('divContainer'));
|
||||
putJSON('/setMyPosition', { shadeId: shadeId, target: pos }, (err, response) => {
|
||||
putJSON('/setMyPosition', { shadeId: shadeId, target: parseInt(pos, 10) }, (err, response) => {
|
||||
this.closeShadePositioners();
|
||||
overlay.remove();
|
||||
console.log(response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue