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:
Robert Strouse 2023-04-07 18:50:14 -07:00
parent b6bc57e437
commit ca76d01a1a
4 changed files with 13 additions and 7 deletions

View file

@ -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);