summaryrefslogtreecommitdiffstats
path: root/src/js/seats.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/seats.js')
-rw-r--r--src/js/seats.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/seats.js b/src/js/seats.js
index 3afc481..91b45f6 100644
--- a/src/js/seats.js
+++ b/src/js/seats.js
@@ -30,7 +30,8 @@ export function init() {
controls.rightSeatWarmer = document.getElementById('RightChair');
}
-export function update(path, value) {
+export function update(path, dp) {
+ var value = dp.getBool();
switch (path) {
case PATHS.leftSeatWarmer:
values.leftSeatWarmer = value;
@@ -44,8 +45,8 @@ export function update(path, value) {
}
export function left() {
- KUKSA.set(PATHS.leftSeatWarmer, !values.leftSeatWarmer);
+ KUKSA.setBool(PATHS.leftSeatWarmer, !values.leftSeatWarmer);
}
export function right() {
- KUKSA.set(PATHS.rightSeatWarmer, !values.rightSeatWarmer);
+ KUKSA.setBool(PATHS.rightSeatWarmer, !values.rightSeatWarmer);
}