mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
thermald: remove cpr logging
This commit is contained in:
@@ -202,20 +202,6 @@ def thermald_thread():
|
|||||||
if params.get_bool("IsOnroad"):
|
if params.get_bool("IsOnroad"):
|
||||||
params.put_bool("BootedOnroad", True)
|
params.put_bool("BootedOnroad", True)
|
||||||
|
|
||||||
# CPR3 logging
|
|
||||||
if EON:
|
|
||||||
base_path = "/sys/kernel/debug/cpr3-regulator/"
|
|
||||||
cpr_files = [p for p in Path(base_path).glob("**/*") if p.is_file()]
|
|
||||||
cpr_files = ["/sys/kernel/debug/regulator/pm8994_s11/voltage"] + cpr_files
|
|
||||||
cpr_data = {}
|
|
||||||
for cf in cpr_files:
|
|
||||||
with open(cf, "r") as f:
|
|
||||||
try:
|
|
||||||
cpr_data[str(cf)] = f.read().strip()
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
cloudlog.event("CPR", data=cpr_data)
|
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
pandaState = messaging.recv_sock(pandaState_sock, wait=True)
|
pandaState = messaging.recv_sock(pandaState_sock, wait=True)
|
||||||
msg = read_thermal(thermal_config)
|
msg = read_thermal(thermal_config)
|
||||||
|
|||||||
Reference in New Issue
Block a user