widadjust: remove trailing whitespace.

master
Pavel Machek 2024-11-11 21:23:54 +01:00
parent fdb9626dc9
commit b37a348c8b
1 changed files with 7 additions and 7 deletions

View File

@ -13,13 +13,13 @@ let fmt = {
2 .. DD MM'ss" 2 .. DD MM'ss"
*/ */
geo_mode : 1, geo_mode : 1,
init: function() {}, init: function() {},
fmtDist: function(km) { return km.toFixed(1) + this.icon_km; }, fmtDist: function(km) { return km.toFixed(1) + this.icon_km; },
fmtSteps: function(n) { return fmtDist(0.001 * 0.719 * n); }, fmtSteps: function(n) { return fmtDist(0.001 * 0.719 * n); },
fmtAlt: function(m) { return m.toFixed(0) + this.icon_alt; }, fmtAlt: function(m) { return m.toFixed(0) + this.icon_alt; },
draw_dot : 1, draw_dot : 1,
add0: function(i) { add0: function(i) {
if (i > 9) { if (i > 9) {
return ""+i; return ""+i;
} else { } else {
@ -83,7 +83,7 @@ let fmt = {
let gps = { let gps = {
emulator: -1, emulator: -1,
init: function(x) { init: function(x) {
this.emulator = (process.env.BOARD=="EMSCRIPTEN" this.emulator = (process.env.BOARD=="EMSCRIPTEN"
|| process.env.BOARD=="EMSCRIPTEN2")?1:0; || process.env.BOARD=="EMSCRIPTEN2")?1:0;
}, },
state: {}, state: {},
@ -141,10 +141,10 @@ function updateTime(fix, now) {
let delta = (now - fix.time.getTime()/1000); let delta = (now - fix.time.getTime()/1000);
let tdelta = "" + delta.toFixed(4); let tdelta = "" + delta.toFixed(4);
let is_fix = 1; let is_fix = 1;
// = fix.fix // = fix.fix
if (start_time < -1) { if (start_time < -1) {
start_time ++; start_time ++;
} }
@ -183,9 +183,9 @@ function on_gps(fix) {
fix.alt.toFixed(0) + "m"; fix.alt.toFixed(0) + "m";
} else { } else {
msg = "N/FIX " msg = "N/FIX "
+ (getTime() - gps.gps_start).toFixed(0) + "s"; + (getTime() - gps.gps_start).toFixed(0) + "s";
} }
msg += "\n" + updateTime(fix, now); msg += "\n" + updateTime(fix, now);
g.reset().clear().setFont("Vector", 31) g.reset().clear().setFont("Vector", 31)