mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
tici: implement sound check
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from cereal import log
|
||||
@@ -39,7 +40,7 @@ class Tici(HardwareBase):
|
||||
return f.read().strip()
|
||||
|
||||
def get_sound_card_online(self):
|
||||
return True
|
||||
return os.system("pulseaudio --check") == 0
|
||||
|
||||
def reboot(self, reason=None):
|
||||
subprocess.check_output(["sudo", "reboot"])
|
||||
|
||||
Reference in New Issue
Block a user