Merge pull request #303 from LostNulide/patch-1

Fix #274
This commit is contained in:
Melissa LeBlanc-Williams 2024-04-15 15:11:55 -07:00 committed by GitHub
commit 3942f2cbd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
import platform
import os
try:
from adafruit_shell import Shell
@ -56,7 +57,10 @@ Installing...""")
)
# Enable I2S overlay
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/config.txt")
if os.path.exists("/boot/firmware/config.txt"):
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/firmware/config.txt")
else:
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/config.txt")
# Done
print("""DONE.