aboutsummaryrefslogtreecommitdiff
path: root/app.mjs
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2024-09-07 00:07:30 -0700
committerDeterminant <[email protected]>2024-09-07 00:08:46 -0700
commit9f0f0940f68e24a2fdf6eedfff0f26a027ac7556 (patch)
tree4e4a4d2d1bb0245af11fea8e6fe28b0a894aef6c /app.mjs
parent32c0057ab0963074dc885c670457736f616e7464 (diff)
...
Diffstat (limited to 'app.mjs')
-rwxr-xr-xapp.mjs6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.mjs b/app.mjs
index 6daa65a..389b656 100755
--- a/app.mjs
+++ b/app.mjs
@@ -914,7 +914,7 @@ const renderBarGauge = (c, display, values_) => {
}
};
-const drawGauge = async (key, label, values) => {
+const drawGauge = (key, label, values) => {
const types = {
meter: renderMeterGauge,
text: renderTextGauge,
@@ -1044,7 +1044,7 @@ device.on("connect", async () => {
}
}
}
- loadPage(getCurrentPage());
+ await loadPage(getCurrentPage());
});
const handleKnobEvent = async (id) => {
@@ -1091,7 +1091,7 @@ device.on("down", async ({ id }) => {
}
console.info(`switch to page: ${id}`);
currentPage = id;
- loadPage(getCurrentPage());
+ await loadPage(getCurrentPage());
} else {
takeAction(await handleKnobEvent(id), "pressed", false);
}