mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
add panda watchdog fault (#27808)
old-commit-hash: ad16b445285451f0375ee850a365214999448b47
This commit is contained in:
+1
-1
Submodule cereal updated: 5827c4e17e...9baf462ce8
+1
-1
Submodule panda updated: 79708f912d...e516a5752b
@@ -420,7 +420,7 @@ std::optional<bool> send_panda_states(PubMaster *pm, const std::vector<Panda *>
|
||||
|
||||
size_t j = 0;
|
||||
for (size_t f = size_t(cereal::PandaState::FaultType::RELAY_MALFUNCTION);
|
||||
f <= size_t(cereal::PandaState::FaultType::SIREN_MALFUNCTION); f++) {
|
||||
f <= size_t(cereal::PandaState::FaultType::HEARTBEAT_LOOP_WATCHDOG); f++) {
|
||||
if (fault_bits.test(f)) {
|
||||
faults.set(j, cereal::PandaState::FaultType(f));
|
||||
j++;
|
||||
|
||||
Reference in New Issue
Block a user