From d4e867e976d98cbb0d4e1403d227159f2a8b44df Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 22 Sep 2021 22:25:48 -0700 Subject: [PATCH] thermald: remove cpr logging --- selfdrive/thermald/thermald.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 9668a96b6..241cdc1cf 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -202,20 +202,6 @@ def thermald_thread(): if params.get_bool("IsOnroad"): 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: pandaState = messaging.recv_sock(pandaState_sock, wait=True) msg = read_thermal(thermal_config)