ref: use display status callback

This commit is contained in:
leukipp
2025-09-09 17:25:56 +02:00
parent 10722fa217
commit 358fa3ca9c
2 changed files with 61 additions and 52 deletions
+3 -2
View File
@@ -112,8 +112,9 @@ const init = async () => {
});
// Check for display changes
interval(update, 1000);
setDisplayStatus("ON");
setDisplayStatus("ON", () => {
interval(update, 1000);
});
return true;
};