From b5c25be3bf74b50ee9e923f7e558bffe5e14fef2 Mon Sep 17 00:00:00 2001 From: LostNulide <138865189+LostNulide@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:24:02 +0200 Subject: [PATCH] Fix #274 This Commit depends on the Merge-Request #23 for the Adafruit_Python_Shell https://github.com/adafruit/Adafruit_Python_Shell/pull/23 --- i2smic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i2smic.py b/i2smic.py index 5be2b13..1340a3a 100644 --- a/i2smic.py +++ b/i2smic.py @@ -56,7 +56,10 @@ Installing...""") ) # 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 print("""DONE.