mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-30 03:23:52 +08:00
board: respect 10 second ublox init time
old-commit-hash: fff5cde352dff35958c5209525d1dcc02b57d610
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user