btadv: fit "waiting" message on screen

pull/2587/head
Rob Pilling 2023-02-11 08:44:24 +00:00
parent 2d1a3cec8f
commit 794c373588
2 changed files with 3 additions and 2 deletions

View File

@ -145,7 +145,7 @@ var drawInfo = function (force) {
g.drawString("swipe to enable", mid, y);
}
else {
g.drawString("waiting for events...", mid, y);
g.drawString("events pending", mid, y);
}
y += g.getFontHeight();
}

View File

@ -107,6 +107,7 @@ const idToName: BtAdvMap<string, true> = {
mag: "Magnetometer",
};
// 15 characters per line
const infoFont: FontNameWithScaleFactor = "6x8:2";
const colour = {
@ -308,7 +309,7 @@ const drawInfo = (force?: true) => {
if (!force || Object.values(settings).every((x: boolean) => !x)) {
g.drawString(`swipe to enable`, mid, y);
} else {
g.drawString(`waiting for events...`, mid, y);
g.drawString(`events pending`, mid, y);
}
y += g.getFontHeight();
}