This commit is contained in:
Your Name
2024-05-09 19:27:36 -05:00
parent 013dae2443
commit 2041d6f89a
8 changed files with 36 additions and 1 deletions

View File

@@ -321,6 +321,9 @@ def thermald_thread(end_event, hw_queue) -> None:
# if the temperature enters the danger zone, go offroad to cool down
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
onroad_conditions["device_temp_good"] = False
extra_text = f"{offroad_comp_temp:.1f}C"
show_alert = (not onroad_conditions["device_temp_good"] or not startup_conditions["device_temp_engageable"]) and onroad_conditions["ignition"]
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", show_alert, extra_text=extra_text)