Fix #274
This Commit depends on the Merge-Request #23 for the Adafruit_Python_Shell https://github.com/adafruit/Adafruit_Python_Shell/pull/23
This commit is contained in:
parent
02c6b18f1c
commit
b5c25be3bf
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ Installing...""")
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enable I2S overlay
|
# Enable I2S overlay
|
||||||
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/config.txt")
|
if shell.get_raspbian_version() == "bookworm":
|
||||||
|
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
|
# Done
|
||||||
print("""DONE.
|
print("""DONE.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue