From 7b0d27e61243feb9dd82834a21dc72f4d045fb25 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 16 Jun 2021 11:59:15 +0200 Subject: [PATCH] Don't check RAM/disk in simulation (#21261) * Don't check RAM/disk on PC * simulation --- selfdrive/controls/controlsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 2071b40997..285de25aa3 100755 --- a/selfdrive/controls/controlsd.py +++ b/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