From 03a00ccf459b97f7c86deb26dda0453a3847f4e1 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 2 Sep 2019 14:45:25 +1000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/thermald.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/thermald.py b/selfdrive/thermald.py index 1b8b38f2f..b29464b74 100755 --- a/selfdrive/thermald.py +++ b/selfdrive/thermald.py @@ -195,9 +195,9 @@ def thermald_thread(): if "\x00".join("WIFI") in data: result = subprocess.check_output(["ifconfig", "wlan0"]) ip_addr = re.findall(r"inet addr:((\d+\.){3}\d+)", result)[0][0] - ts_last_ip = ts else: - ip_addr = '' + ip_addr = ' ' + ts_last_ip = ts else: ip_addr = last_ip_addr msg.thermal.ipAddr = ip_addr