|
|
@ -506,7 +506,7 @@ void pigeon_thread() { |
|
|
|
for (const auto& [msg_cls, max_dt] : cls_max_dt) { |
|
|
|
for (const auto& [msg_cls, max_dt] : cls_max_dt) { |
|
|
|
int64_t dt = (int64_t)nanos_since_boot() - (int64_t)last_recv_time[msg_cls]; |
|
|
|
int64_t dt = (int64_t)nanos_since_boot() - (int64_t)last_recv_time[msg_cls]; |
|
|
|
if (ignition_last && ignition && dt > max_dt) { |
|
|
|
if (ignition_last && ignition && dt > max_dt) { |
|
|
|
LOGE("ublox receive timeout, msg class: 0x%02x, dt %llu, resetting panda GPS", msg_cls, dt); |
|
|
|
LOGD("ublox receive timeout, msg class: 0x%02x, dt %llu", msg_cls, dt); |
|
|
|
// TODO: turn on reset after verification of logs
|
|
|
|
// TODO: turn on reset after verification of logs
|
|
|
|
// need_reset = true;
|
|
|
|
// need_reset = true;
|
|
|
|
} |
|
|
|
} |
|
|
|