Don't check RAM/disk in simulation (#21261)

* Don't check RAM/disk on PC

* simulation
old-commit-hash: 7b0d27e612
commatwo_master
Willem Melching 4 years ago committed by GitHub
parent 6bfc7f4ca5
commit 8d345a26f6
  1. 4
      selfdrive/controls/controlsd.py

@ -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

Loading…
Cancel
Save