Browse Source

fixing slider values

gcmalloc 5 years ago
parent
commit
098f7b922d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -152,7 +152,7 @@ function update_date(date) {
 function switchTheLight(red, green, blue) {
     $.ajax(url_led, {
         type: 'POST',
-        data: {red: red, green: green, blue: blue, breathe: slider.val().substring(0, -3)},
+        data: {red: red, green: green, blue: blue, breathe: slider.val()},
     });
 }