fix tici sound card check

old-commit-hash: 59ea5eade9
commatwo_master
Adeeb Shihadeh 4 years ago
parent a13c21c7a7
commit b3f8b886cb
  1. 3
      selfdrive/hardware/tici/hardware.py

@ -44,7 +44,8 @@ class Tici(HardwareBase):
return "tici"
def get_sound_card_online(self):
return os.system("pulseaudio --check") == 0
return (os.path.isfile('/proc/asound/card0/state') and
open('/proc/asound/card0/state').read().strip() == 'ONLINE')
def reboot(self, reason=None):
subprocess.check_output(["sudo", "reboot"])

Loading…
Cancel
Save