log for high offroad memory usage

old-commit-hash: 4f02b4386c
commatwo_master
Adeeb Shihadeh 4 years ago
parent 5eb4b526c4
commit ea01368644
  1. 3
      selfdrive/thermald/thermald.py

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

Loading…
Cancel
Save