diff --git a/system/hardware/hardwared.py b/system/hardware/hardwared.py index 36d8584e0..2b47e53d1 100755 --- a/system/hardware/hardwared.py +++ b/system/hardware/hardwared.py @@ -287,6 +287,9 @@ def hardware_thread(end_event, hw_queue) -> None: if fan_controller is not None: msg.deviceState.fanSpeedPercentDesired = fan_controller.update(all_comp_temp, onroad_conditions["ignition"]) + if frogpilot_toggles.increase_thermal_limits: + all_comp_temp -= (THERMAL_BANDS[ThermalStatus.danger].min_temp - THERMAL_BANDS[ThermalStatus.red].min_temp) + is_offroad_for_5_min = (started_ts is None) and ((not started_seen) or (off_ts is None) or (time.monotonic() - off_ts > 60 * 5)) if is_offroad_for_5_min and offroad_comp_temp > OFFROAD_DANGER_TEMP: # if device is offroad and already hot without the extra onroad load,