aboutsummaryrefslogtreecommitdiff
path: root/ui/js
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-10 09:08:32 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-10 09:08:32 +0200
commit054be597e639cc6294f37202b966fe5e53c13f99 (patch)
tree1416f2829f2464e5b1169643b6316e94f94cc681 /ui/js
parent8aa0c245595620810f181a6b3f49d66a6bd6b090 (diff)
fix lights range
Diffstat (limited to 'ui/js')
-rw-r--r--ui/js/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/js/api.js b/ui/js/api.js
index 48bd9e5..bc7803d 100644
--- a/ui/js/api.js
+++ b/ui/js/api.js
@@ -22,7 +22,7 @@ const api = {
barrier: open => setPolkaDot(document.getElementById("barrierValue"), open),
trafficLights: state => document.getElementById("trafficLightsValue").innerText = state,
lights: value => {
- document.getElementById("lightsValue").innerText = value;
+ document.getElementById("lightsValue").innerText = value * 10;
document.getElementById("lightsInput").value = value;
},
matrix: state => document.getElementById("matrixValue").value = state,
@@ -82,7 +82,7 @@ const api = {
},
lights: el => {
var value = Number(el.value);
- send({ type: 'lights', value: value / 10 });
+ send({ type: 'lights', value });
api.update.lights(value);
},
matrix: el => {