mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-11 07:52:03 +08:00
Always keep display on with ignition (#2138)
* keep display on with ignition * fix typo Co-authored-by: Willem Melching <willem.melching@gmail.com>
This commit is contained in:
+3
-1
@@ -199,7 +199,9 @@ void update_sockets(UIState *s) {
|
||||
}
|
||||
}
|
||||
if (sm.updated("health")) {
|
||||
scene.hwType = sm["health"].getHealth().getHwType();
|
||||
auto health = sm["health"].getHealth();
|
||||
scene.hwType = health.getHwType();
|
||||
s->ignition = health.getIgnitionLine() || health.getIgnitionCan();
|
||||
} else if ((s->sm->frame - s->sm->rcv_frame("health")) > 5*UI_FREQ) {
|
||||
scene.hwType = cereal::HealthData::HwType::UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user