From c79e15d7a1f5090bb8cf5e74d387a6cb93bc1699 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Wed, 17 May 2023 19:44:55 +0200 Subject: [PATCH] Fixed updateLightStateAndPWMValues call --- firmware/data/bottom.js | 4 ++-- firmware/html/bottom.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/data/bottom.js b/firmware/data/bottom.js index 40a1950..fe5af92 100644 --- a/firmware/data/bottom.js +++ b/firmware/data/bottom.js @@ -350,7 +350,7 @@ console.log('Error while sending data to server.'); } }; xhr.send(); -updateLightState(); +updateLightStateAndPWMValues(); this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_on').classList.remove('pure-button-primary'); }); @@ -395,7 +395,7 @@ console.log('Error while sending data to server.'); } }; xhr.send(); -updateLightState(); +updateLightStateAndPWMValues(); this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_off').classList.remove('pure-button-primary'); }); diff --git a/firmware/html/bottom.js b/firmware/html/bottom.js index 1b69507..11f20f6 100644 --- a/firmware/html/bottom.js +++ b/firmware/html/bottom.js @@ -409,7 +409,7 @@ links.forEach(function(link) { // Sende die Anfrage im Hintergrund xhr.send(); - updateLightState(); + updateLightStateAndPWMValues(); this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_on').classList.remove('pure-button-primary'); }); @@ -462,7 +462,7 @@ links.forEach(function(link) { // Sende die Anfrage im Hintergrund xhr.send(); - updateLightState(); + updateLightStateAndPWMValues(); this.classList.add('pure-button-primary'); document.getElementById('on'+id+'_off').classList.remove('pure-button-primary'); });