mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
board: respect 10 second ublox init time
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