From bc62d8c2e2fb997e48f99fb27879fe21d175372c Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 15 Oct 2020 20:52:27 +0200 Subject: [PATCH] tici: reboot old-commit-hash: 3fe3ec79496a39647435d3f5566147aee75ece22 --- common/hardware_tici.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/hardware_tici.py b/common/hardware_tici.py index 223bfc1ccc..2212edd481 100644 --- a/common/hardware_tici.py +++ b/common/hardware_tici.py @@ -2,6 +2,7 @@ import serial from common.hardware_base import HardwareBase from cereal import log +import subprocess NetworkType = log.ThermalData.NetworkType @@ -40,7 +41,7 @@ class Tici(HardwareBase): return "" def reboot(self, reason=None): - print("REBOOT!") + subprocess.check_output(["sudo", "reboot"]) def get_network_type(self): return NetworkType.wifi