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 // 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(); const fdata = new FormData();
if (part === 'body') { if (part === 'body') {
// If part is 'body', append the 'r' parameter to the form data // If part is 'body', append the 'r' parameter to the form data
@ -138,7 +141,7 @@
fdata.append('x2', coords.x); fdata.append('x2', coords.x);
fdata.append('y2', coords.y); fdata.append('y2', coords.y);
} }
return redirectAPI({ fdata }); return await redirectAPI({ fdata });
} }
// Converts the x and y values from percentage to matrix coordinates // Converts the x and y values from percentage to matrix coordinates