mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 14:02:05 +08:00
log for high offroad memory usage
This commit is contained in:
@@ -244,6 +244,9 @@ def thermald_thread():
|
||||
msg.deviceState.batteryVoltage = HARDWARE.get_battery_voltage()
|
||||
msg.deviceState.usbOnline = HARDWARE.get_usb_present()
|
||||
|
||||
if EON and started_ts is not None and msg.deviceState.memoryUsagePercent > 40:
|
||||
cloudlog.warning("High offroad memory usage", mem=msg.deviceState.memoryUsagePercent)
|
||||
|
||||
# Fake battery levels on uno for frame
|
||||
if (not EON) or is_uno:
|
||||
msg.deviceState.batteryPercent = 100
|
||||
|
||||
Reference in New Issue
Block a user