clean up: bugfixes

This commit is contained in:
waltem01 2024-03-08 11:46:56 +01:00
parent b1703955d8
commit 2cff560425

View File

@ -121,7 +121,10 @@
}
// Displays a clock part on the matrix display
function displayClockPart(part: 'body' | 'seconds' | 'minutes' | 'hours', params: DisplayParams) {
async function displayClockPart(
part: 'body' | 'seconds' | 'minutes' | 'hours',
params: DisplayParams
) {
const fdata = new FormData();
if (part === 'body') {
// If part is 'body', append the 'r' parameter to the form data
@ -138,7 +141,7 @@
fdata.append('x2', coords.x);
fdata.append('y2', coords.y);
}
return redirectAPI({ fdata });
return await redirectAPI({ fdata });
}
// Converts the x and y values from percentage to matrix coordinates