1
0
Fork 0

spacer: display (no data) when data are not available.

master
Pavel Machek 2024-12-03 23:57:43 +01:00
parent a311899f2a
commit c7a3c602e2
1 changed files with 4 additions and 1 deletions

View File

@ -197,7 +197,10 @@ let sky = {
msg: {},
tof: function(v) { let i = (1*v); return i.toFixed(0); },
fmtSys: function(sys) {
return sys.sent + "." + sys.d23 + "D "+ this.tof(sys.pdop) + " " + this.tof(sys.vdop) + "\n";
if (sys.sent !== undefined && sys.d23 !== undefined)
return sys.sent + "." + sys.d23 + "D "+ this.tof(sys.pdop) + " " + this.tof(sys.vdop) + "\n";
else
return "(no data)\n";
},
display: function() {
if (ui.display != 1)