diff options
author | Determinant <[email protected]> | 2024-09-07 00:07:30 -0700 |
---|---|---|
committer | Determinant <[email protected]> | 2024-09-07 00:08:46 -0700 |
commit | 9f0f0940f68e24a2fdf6eedfff0f26a027ac7556 (patch) | |
tree | 4e4a4d2d1bb0245af11fea8e6fe28b0a894aef6c /app.mjs | |
parent | 32c0057ab0963074dc885c670457736f616e7464 (diff) |
...
Diffstat (limited to 'app.mjs')
-rwxr-xr-x | app.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |