From 42c76208ef43188bb271f6e3a63e0bd18ae4ac30 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sun, 1 Dec 2024 20:26:33 +0100 Subject: [PATCH] skyspy: turn down debugging --- apps/skyspy/skyspy.app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/skyspy/skyspy.app.js b/apps/skyspy/skyspy.app.js index 781b53a56..aa8bd31e3 100644 --- a/apps/skyspy/skyspy.app.js +++ b/apps/skyspy/skyspy.app.js @@ -430,6 +430,7 @@ let quality = { print("...no fix\n"); quality.fix_start = getTime(); } + return; //print("fix: ", fix); //print("qalt: ", qalt); if (qalt < 0 || qalt > 10) @@ -655,8 +656,10 @@ let sky = { this.msg.in_view = s[7]; this.msg.hdop = s[8]; + if (debug > 0) { print("-----------------------------------------------"); print("GGA Time", s[1], "fix quality", s[4], "sats in view ", s[5]); + } return; } if (cmd === "GLL") return; /* Position lat/lon */ @@ -678,22 +681,25 @@ let sky = { else if (sys == 4) { this.msg.bd = add; } else print("GSA Unknown system\n"); - print(msg); + //print(msg); return; } if (s[0] === "$GPGSV") { + if (debug > 0) print("Have gps sentences", s[1], "/", s[2]); this.parseSats(s); this.msg.gp.sent = ""+s[2]; return; } if (s[0] === "$BDGSV") { + if (debug > 0) print("Have baidu sentences", s[1], "/", s[2]); this.parseSats(s); this.msg.bd.sent = ""+s[2]; return; } if (s[0] === "$GLGSV") { + if (debug > 0) print("Have glonass sentences", s[1], "/", s[2]); this.parseSats(s); this.msg.gl.sent = ""+s[2];