mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 05:22:07 +08:00
fix low memory on tici
old-commit-hash: e1d7a1af10c1a4a5efe2fe6f278f2af0dbc25718
This commit is contained in:
@@ -186,7 +186,8 @@ class Controls:
|
||||
if self.sm['deviceState'].freeSpacePercent < 7:
|
||||
# under 7% of space free no enable allowed
|
||||
self.events.add(EventName.outOfSpace)
|
||||
if self.sm['deviceState'].memoryUsagePercent > 65:
|
||||
# TODO: make tici threshold the same
|
||||
if self.sm['deviceState'].memoryUsagePercent > (90 if TICI else 65):
|
||||
self.events.add(EventName.lowMemory)
|
||||
|
||||
# Alert if fan isn't spinning for 5 seconds
|
||||
|
||||
Reference in New Issue
Block a user