aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fan_speed.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/fan_speed.js')
-rw-r--r--src/js/fan_speed.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/fan_speed.js b/src/js/fan_speed.js
index fa0ed01..74e4748 100644
--- a/src/js/fan_speed.js
+++ b/src/js/fan_speed.js
@@ -17,7 +17,8 @@
var value = 0;
var node = null;
-export function update(path, value) {
+export function update(path, dp) {
+ var value = dp.getUint32();
node.value = value;
node.parentNode.getElementsByTagName('progress')[0].value = value;
}
@@ -26,6 +27,6 @@ export function init() {
node = document.getElementById('FanSpeed');
}
-export function set() {
- KUKSA.set(PATHS.leftFanSpeed, node.value);
+export function set(value) {
+ KUKSA.setUInt32(PATHS.leftFanSpeed, value);
}