display message when forced offroad

This commit is contained in:
Jason Wen
2024-04-18 16:50:34 -04:00
parent fef46d3093
commit 2f4f0a7c16
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -323,6 +323,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"VisionCurveLaneless", PERSISTENT | BACKUP},
{"VwAccType", PERSISTENT | BACKUP},
{"VwCCOnly", PERSISTENT | BACKUP},
{"Offroad_ForceStatus", PERSISTENT},
{"Offroad_SupersededUpdate", PERSISTENT},
{"SunnylinkCache_Users", PERSISTENT},
+1
View File
@@ -311,6 +311,7 @@ def thermald_thread(end_event, hw_queue) -> None:
# user-forced status
startup_conditions["not_force_offroad"] = not params.get_bool("ForceOffroad")
set_offroad_alert("Offroad_ForceStatus", True)
# if the temperature enters the danger zone, go offroad to cool down
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger