skyspy: update the fmt library, should fix lat/lon display

pull/3672/head
Pavel Machek 2024-11-22 18:51:15 +01:00
parent dbbb16b69f
commit 2e5f36d675
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/* Sky spy */ /* Sky spy */
/* FIXME: need to switch to latest fmt library */ /* fmt library v0.2.3 */
let fmt = { let fmt = {
icon_alt : "\0\x08\x1a\1\x00\x00\x00\x20\x30\x78\x7C\xFE\xFF\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00", icon_alt : "\0\x08\x1a\1\x00\x00\x00\x20\x30\x78\x7C\xFE\xFF\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00",
icon_m : "\0\x08\x1a\1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00", icon_m : "\0\x08\x1a\1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xC3\xE7\xFF\xDB\xC3\xC3\xC3\xC3\x00\x00\x00\x00\x00\x00\x00\x00",
@ -87,6 +87,7 @@ let fmt = {
x = -x; x = -x;
} }
let s = c+this.fmtAngle(x) + "\n"; let s = c+this.fmtAngle(x) + "\n";
x = pos.lon;
c = "E"; c = "E";
if (x<0) { if (x<0) {
c = "W"; c = "W";