Skip to content

Commit

Permalink
spacer: display (no data) when data are not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmachek committed Dec 3, 2024
1 parent a311899 commit c7a3c60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/spacer/spacer.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c7a3c60

Please sign in to comment.