Skip to content

Commit

Permalink
Remove constant "No suitable device found." log message when no GPS f…
Browse files Browse the repository at this point in the history
…ound.

Debug only now.
  • Loading branch information
cyoung committed Aug 12, 2019
1 parent 4afdebb commit 377d22b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/gps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 377d22b

Please sign in to comment.