replay: replay deprecated pandaState if pandaStates is whitelisted (#28275)

old-commit-hash: 00ff096ca2f9ca5e1c0f6a78702dc3cc78978092
This commit is contained in:
Kacper Rączy
2023-05-24 04:48:57 +02:00
committed by GitHub
parent a48b67f720
commit 3c1ae19261

View File

@@ -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;