From 377d22b4037d7eb7758e8c8563199411d67c0c44 Mon Sep 17 00:00:00 2001 From: cyoung Date: Mon, 12 Aug 2019 16:21:21 -0400 Subject: [PATCH] Remove constant "No suitable device found." log message when no GPS found. Debug only now. --- main/gps.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/gps.go b/main/gps.go index 3e65ba38..5e8ca05e 100644 --- a/main/gps.go +++ b/main/gps.go @@ -217,7 +217,9 @@ func initGPSSerial() bool { device = "/dev/ttyAMA0" globalStatus.GPS_detected_type = GPS_TYPE_UART } else { - log.Printf("No suitable device found.\n") + if globalSettings.DEBUG { + log.Printf("No GPS device found.\n") + } return false } if globalSettings.DEBUG {