|
|
|
@ -356,13 +356,13 @@ def thermald_thread(): |
|
|
|
|
# controls will warn with CPU above 95 or battery above 60 |
|
|
|
|
startup_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger |
|
|
|
|
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not startup_conditions["device_temp_good"])) |
|
|
|
|
should_start = all(startup_conditions.values()) |
|
|
|
|
|
|
|
|
|
startup_conditions["hardware_supported"] = health is not None and health.health.hwType not in [log.HealthData.HwType.whitePanda, |
|
|
|
|
log.HealthData.HwType.greyPanda] |
|
|
|
|
set_offroad_alert_if_changed("Offroad_HardwareUnsupported", health is not None and not startup_conditions["hardware_supported"]) |
|
|
|
|
|
|
|
|
|
# Handle offroad/onroad transition |
|
|
|
|
should_start = all(startup_conditions.values()) |
|
|
|
|
if should_start: |
|
|
|
|
if not should_start_prev: |
|
|
|
|
params.delete("IsOffroad") |
|
|
|
|