move async-await chain downwards

This commit is contained in:
waltem01 2024-03-26 10:21:38 +01:00
parent 727140322e
commit cfe1e5c0cc

View File

@ -74,7 +74,7 @@
return 50 + radius * relative;
}
async function update() {
function update() {
// Get current datetime and date
const current = new Date(Date.now());
const day = new Date(current.toDateString());
@ -107,7 +107,7 @@
}
};
// If enabled, update clock display
if (clockEnabled) await displayMatrixClock();
if (clockEnabled) displayMatrixClock();
}
// Converts the x and y values from percentage to matrix coordinates