boardd: end peripheral panda discrimination

pull/26574/head
Adeeb Shihadeh 2 years ago
parent 8ee07def5c
commit e9dcabcef7
  1. 3
      selfdrive/boardd/boardd.cc
  2. 3
      selfdrive/boardd/panda.cc

@ -528,9 +528,6 @@ void peripheral_control_thread(Panda *panda, bool no_fan_control) {
cnt++;
sm.update(1000); // TODO: what happens if EINTR is sent while in sm.update?
// Other pandas don't have fan/IR to control
if (panda->hw_type != cereal::PandaState::PandaType::UNO && panda->hw_type != cereal::PandaState::PandaType::DOS) continue;
if (sm.updated("deviceState") && !no_fan_control) {
// Fan speed
uint16_t fan_speed = sm["deviceState"].getDeviceState().getFanSpeedPercentDesired();

@ -24,7 +24,8 @@ Panda::Panda(std::string serial, uint32_t bus_offset) : bus_offset(bus_offset) {
(hw_type != cereal::PandaState::PandaType::GREY_PANDA));
has_rtc = (hw_type == cereal::PandaState::PandaType::UNO) ||
(hw_type == cereal::PandaState::PandaType::DOS);
(hw_type == cereal::PandaState::PandaType::DOS) ||
(hw_type == cereal::PandaState::PandaType::TRES);
return;
}

Loading…
Cancel
Save