From 90aeb19cd06d6c5ec43320f36f3d3637eec255c5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 6 Jun 2024 01:06:19 -0700 Subject: [PATCH] logmessaged might not be alive old-commit-hash: 7483ba0eac42875a822df97596d23ff277bf3865 --- selfdrive/pandad/pandad.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/pandad/pandad.cc b/selfdrive/pandad/pandad.cc index 15e3750e5a..8997bb44bd 100644 --- a/selfdrive/pandad/pandad.cc +++ b/selfdrive/pandad/pandad.cc @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -495,6 +496,11 @@ void panda_state_thread(std::vector pandas, bool spoofing_started) { // reset the safety mode to avoid faulting the car LOGE("EXITED!"); + + std::ofstream f; + f.open("/data/pandad_exited.txt", std::ios_base::app); + f << "exited\n"; + if (is_onroad && !engaged) { for (auto &p : pandas) { p->set_safety_model(cereal::CarParams::SafetyModel::NO_OUTPUT);