mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
log for high offroad memory usage
old-commit-hash: 4f02b4386caeb6868ea8704c2f4d0ef655b59779
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