From 3c1ae19261dd91d05a049c93bb07e80c89b225ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Wed, 24 May 2023 04:48:57 +0200 Subject: [PATCH] replay: replay deprecated pandaState if pandaStates is whitelisted (#28275) old-commit-hash: 00ff096ca2f9ca5e1c0f6a78702dc3cc78978092 --- tools/replay/replay.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/replay/replay.cc b/tools/replay/replay.cc index b68330f688..95315fe71b 100644 --- a/tools/replay/replay.cc +++ b/tools/replay/replay.cc @@ -30,6 +30,9 @@ Replay::Replay(QString route, QStringList allow, QStringList block, SubMaster *s // the following events are needed for replay to work properly. allow_list.insert(cereal::Event::Which::INIT_DATA); allow_list.insert(cereal::Event::Which::CAR_PARAMS); + if (sockets_[cereal::Event::Which::PANDA_STATES] != nullptr) { + allow_list.insert(cereal::Event::Which::PANDA_STATE_D_E_P_R_E_C_A_T_E_D); + } } qDebug() << "services " << s;