diff --git a/frontend/src/lib/router/routes/Home.svelte b/frontend/src/lib/router/routes/Home.svelte index 7deabc4..e6408a8 100644 --- a/frontend/src/lib/router/routes/Home.svelte +++ b/frontend/src/lib/router/routes/Home.svelte @@ -11,7 +11,9 @@ }); function handleBrightnessChange(lamp: number, brightness: number) { - SetLampBrightness(lamp, brightness); + // Brightness is actually 1-255 and not 1-100 + // But we want the frontend to show 1-100 as in % + SetLampBrightness(lamp, Math.round(brightness * 2.55)); }