From ab6b11554c320744c9c9b43b9ebced8ee5e67d63 Mon Sep 17 00:00:00 2001 From: cyoung Date: Wed, 5 Jun 2019 10:09:08 -0400 Subject: [PATCH] Move "GPS serial connection in use" log print to DEBUG only. #772. --- main/gps.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/gps.go b/main/gps.go index 1645d380..3e65ba38 100644 --- a/main/gps.go +++ b/main/gps.go @@ -307,7 +307,9 @@ func initGPSSerial() bool { galileo := []byte{0x02, 0x04, 0x08, 0x00, 0x00, 0x00, 0x01, 0x01} // this disables Galileo if (globalStatus.GPS_detected_type == GPS_TYPE_UBX8) || (globalStatus.GPS_detected_type == GPS_TYPE_UBX9) || (globalStatus.GPS_detected_type == GPS_TYPE_UART) { // assume that any GPS connected to serial GPIO is ublox8 (RY835/6AI) - log.Printf("UBX8/9/unknown device detected on USB, or GPS serial connection in use. Attempting GLONASS and Galelio configuration.\n") + if globalSettings.DEBUG { + log.Printf("UBX8/9/unknown device detected on USB, or GPS serial connection in use. Attempting GLONASS and Galelio configuration.\n") + } glonass = []byte{0x06, 0x08, 0x0E, 0x00, 0x01, 0x00, 0x01, 0x01} // this enables GLONASS with 8-14 tracking channels galileo = []byte{0x02, 0x04, 0x08, 0x00, 0x01, 0x00, 0x01, 0x01} // this enables Galileo with 4-8 tracking channels updatespeed = []byte{0x06, 0x00, 0xF4, 0x01, 0x01, 0x00} // Nav speed 2Hz