mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
clean up: bugfixes
This commit is contained in:
parent
b1703955d8
commit
2cff560425
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user