Controls - Device Management - Increase Thermal Safety Limit

Allow the device to run at a temperature above comma's recommended thermal limits.
This commit is contained in:
FrogAi 2024-05-10 11:20:15 -07:00
parent 661a60df48
commit 944aaa3811
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ class Controls:
# Create events for temperature, disk space, and memory
if self.sm['deviceState'].thermalStatus >= ThermalStatus.red:
self.events.add(EventName.overheat)
if not self.frogpilot_toggles.increase_thermal_limits or self.sm['deviceState'].thermalStatus == ThermalStatus.danger:
self.events.add(EventName.overheat)
if self.sm['deviceState'].freeSpacePercent < 7 and not SIMULATION:
# under 7% of space free no enable allowed
self.events.add(EventName.outOfSpace)