safety_setter_thread: exit on ignition low (#22426)

old-commit-hash: 3e854b8351
commatwo_master
Willem Melching 4 years ago committed by GitHub
parent ca45a040fc
commit 5aa9a8e217
  1. 4
      selfdrive/boardd/boardd.cc

@ -57,7 +57,7 @@ bool safety_setter_thread(Panda *panda) {
// switch to SILENT when CarVin param is read
while (true) {
if (do_exit || !panda->connected) {
if (do_exit || !panda->connected || !ignition) {
return false;
};
@ -77,7 +77,7 @@ bool safety_setter_thread(Panda *panda) {
std::string params;
LOGW("waiting for params to set safety model");
while (true) {
if (do_exit || !panda->connected) {
if (do_exit || !panda->connected || !ignition) {
return false;
};

Loading…
Cancel
Save