board: respect 10 second ublox init time

This commit is contained in:
Willem Melching
2021-03-09 12:05:16 +01:00
parent 4fc81c2a08
commit fff5cde352
+4 -1
View File
@@ -499,7 +499,10 @@ void pigeon_thread() {
if (ignition && recv.length() >= 3) {
if (recv[0] == (char)ublox::PREAMBLE1 && recv[1] == (char)ublox::PREAMBLE2){
const char msg_cls = recv[2];
last_recv_time[msg_cls] = nanos_since_boot();
uint64_t t = nanos_since_boot();
if (t > last_recv_time[msg_cls]){
last_recv_time[msg_cls] = t;
}
}
}