Make "GPS week out of scope" warning a debug message.

pull/452/head
Christopher Young 2016-06-30 11:51:56 -04:00
rodzic 917029b7ac
commit f8269f5759
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -773,7 +773,9 @@ func processNMEALine(l string) (sentenceUsed bool) {
return false
}
if utcWeek < 1877 || utcWeek >= 32767 { // unless we're in a flying Delorean, UTC dates before 2016-JAN-01 are not valid. Check underflow condition as well.
log.Printf("GPS week # %v out of scope; not setting time and date\n", utcWeek)
if globalSettings.DEBUG {
log.Printf("GPS week # %v out of scope; not setting time and date\n", utcWeek)
}
return false
} /* else {
log.Printf("GPS week # %v valid; evaluate time and date\n", utcWeek) //debug option