mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 08:16:06 +08:00
Don't check RAM/disk in simulation (#21261)
* Don't check RAM/disk on PC * simulation
This commit is contained in:
@@ -190,11 +190,11 @@ class Controls:
|
||||
self.events.add(EventName.lowBattery)
|
||||
if self.sm['deviceState'].thermalStatus >= ThermalStatus.red:
|
||||
self.events.add(EventName.overheat)
|
||||
if self.sm['deviceState'].freeSpacePercent < 7:
|
||||
if self.sm['deviceState'].freeSpacePercent < 7 and not SIMULATION:
|
||||
# under 7% of space free no enable allowed
|
||||
self.events.add(EventName.outOfSpace)
|
||||
# TODO: make tici threshold the same
|
||||
if self.sm['deviceState'].memoryUsagePercent > (90 if TICI else 65):
|
||||
if self.sm['deviceState'].memoryUsagePercent > (90 if TICI else 65) and not SIMULATION:
|
||||
self.events.add(EventName.lowMemory)
|
||||
|
||||
# Alert if fan isn't spinning for 5 seconds
|
||||
|
||||
Reference in New Issue
Block a user