mirror of https://github.com/espruino/BangleApps
btadv: fit "waiting" message on screen
parent
2d1a3cec8f
commit
794c373588
|
@ -145,7 +145,7 @@ var drawInfo = function (force) {
|
||||||
g.drawString("swipe to enable", mid, y);
|
g.drawString("swipe to enable", mid, y);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g.drawString("waiting for events...", mid, y);
|
g.drawString("events pending", mid, y);
|
||||||
}
|
}
|
||||||
y += g.getFontHeight();
|
y += g.getFontHeight();
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,7 @@ const idToName: BtAdvMap<string, true> = {
|
||||||
mag: "Magnetometer",
|
mag: "Magnetometer",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 15 characters per line
|
||||||
const infoFont: FontNameWithScaleFactor = "6x8:2";
|
const infoFont: FontNameWithScaleFactor = "6x8:2";
|
||||||
|
|
||||||
const colour = {
|
const colour = {
|
||||||
|
@ -308,7 +309,7 @@ const drawInfo = (force?: true) => {
|
||||||
if (!force || Object.values(settings).every((x: boolean) => !x)) {
|
if (!force || Object.values(settings).every((x: boolean) => !x)) {
|
||||||
g.drawString(`swipe to enable`, mid, y);
|
g.drawString(`swipe to enable`, mid, y);
|
||||||
} else {
|
} else {
|
||||||
g.drawString(`waiting for events...`, mid, y);
|
g.drawString(`events pending`, mid, y);
|
||||||
}
|
}
|
||||||
y += g.getFontHeight();
|
y += g.getFontHeight();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue