Skip to content

Commit

Permalink
sj201 v6 and v10 division
Browse files Browse the repository at this point in the history
added sj201v10 detection.

This helps with plugin validation.
  • Loading branch information
builderjer committed May 25, 2024
1 parent 09f8b33 commit 5394a74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ovos_PHAL/detection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import subprocess


def is_mycroft_sj201():
def is_mycroft_sj201_v6():
cmd = 'i2cdetect -y -a 1 0x04 0x04 | egrep "(04|UU)" | awk \'{print $2}\''
out = subprocess.check_output(cmd, shell=True).strip()
if out == b"04" or out == b"UU":
Expand Down Expand Up @@ -47,3 +47,9 @@ def is_texas_tas5806():
if out == b"2f" or out == b"UU":
return True
return False


def is_mycroft_sj201_v10():
if is_texas_tas5806 and not is_mycroft_sj201_v6:
return True
return False

0 comments on commit 5394a74

Please sign in to comment.