From 5469b313c2478b8eb79e5fc6fca7de4def23a879 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 17 Feb 2020 10:38:39 -0800 Subject: [PATCH] Update network every 10 seconds --- selfdrive/thermald.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/thermald.py b/selfdrive/thermald.py index 648a82acde..c516acc779 100755 --- a/selfdrive/thermald.py +++ b/selfdrive/thermald.py @@ -192,8 +192,8 @@ def thermald_thread(): if health is not None: usb_power = health.health.usbPowerMode != log.HealthData.UsbPowerMode.client - # get_network_type is an expensive call. update every 3s - if (count % int(3. / DT_TRML)) == 0: + # get_network_type is an expensive call. update every 10s + if (count % int(10. / DT_TRML)) == 0: try: network_type = get_network_type() except subprocess.CalledProcessError: