Skip to content

Commit

Permalink
disable for mk1 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
builderjer committed Jan 11, 2025
1 parent 9534635 commit a20204b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ovos_PHAL_plugin_dotstar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ovos_utils.log import LOG
from ovos_config.config import Configuration

from ovos_i2c_detection import is_wm8960, is_respeaker_4mic, is_respeaker_6mic
from ovos_i2c_detection import is_wm8960, is_respeaker_4mic, is_respeaker_6mic, is_mark_1

from lingua_franca.util.colors import Color
from lingua_franca.internal import load_language
Expand Down Expand Up @@ -55,6 +55,9 @@ def validate(config=None):
return True
# Try a direct hardware check
if is_wm8960() or is_respeaker_4mic() or is_respeaker_6mic():
if is_mark_1():
LOG.debug("Mark 1 detected. Dotstar is not needed")
return False
LOG.debug("direct hardware check")
return True
LOG.debug("no validation")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
adafruit-circuitpython-dotstar
ovos-plugin-manager>=0.0.1
ovos-lingua-franca>=0.4.8a8
ovos-i2c-detection>=0.0.0a5
ovos-i2c-detection>=0.0.5
gpiozero
rpi-lgpio

0 comments on commit a20204b

Please sign in to comment.