tici: reboot

This commit is contained in:
Willem Melching
2020-10-15 20:52:27 +02:00
parent 442f2543e3
commit 3fe3ec7949

View File

@@ -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