From 2e621cb42661130fc57eabadffd026c24e776790 Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Thu, 10 Mar 2016 12:33:03 -0500 Subject: [PATCH] Cleanup. --- main/ry835ai.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main/ry835ai.go b/main/ry835ai.go index 56371975..9aeeafbb 100644 --- a/main/ry835ai.go +++ b/main/ry835ai.go @@ -75,7 +75,7 @@ var serialPort *serial.Port var readyToInitGPS bool // TO-DO: replace with channel control to terminate goroutine when complete /* -file:///Users/c/Downloads/u-blox5_Referenzmanual.pdf +u-blox5_Referenzmanual.pdf Platform settings Airborne <2g Recommended for typical airborne environment. No 2D position fixes supported. p.91 - CFG-MSG @@ -982,9 +982,11 @@ func gpsSerialReader() { } s := scanner.Text() - //fmt.Printf("Output: %s\n", s) - if !(processNMEALine(s)) { - // fmt.Printf("processNMEALine() exited early -- %s\n",s) //debug code. comment out before pushing to github + + if !processNMEALine(s) { + if globalSettings.DEBUG { + fmt.Printf("processNMEALine() exited early -- %s\n", s) + } } } if err := scanner.Err(); err != nil {