Skip to content

Commit 0aa315d

Browse files
authored
Merge pull request #363 from makermelissa/main
Fix PiTFT installation on Raspberry Pi Trixie
2 parents a690618 + 27643da commit 0aa315d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit-pitft.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,6 @@ def softwareinstall():
379379
warn_exit("Apt failed to install TSLIB!")
380380
if not shell.run_command("apt-get install -y bc fbi git python3-dev python3-pip python3-smbus python3-spidev evtest libts-bin device-tree-compiler build-essential python3-evdev"):
381381
warn_exit("Apt failed to install software!")
382-
if not shell.run_command("apt-get install -y raspi-config"):
383-
warn_exit("Apt failed to install raspi-config!")
384382
return True
385383

386384
def uninstall_bootconfigtxt():
@@ -577,7 +575,8 @@ def uninstall_console():
577575
print("Restoring Desktop Environment...")
578576
shell.run_command("apt-get -y install rpd-plym-splash") # Install Splash Screen
579577
shell.run_command("raspi-config nonint do_boot_splash 0") # Enable Splash Screen
580-
shell.run_command("apt-get -y install raspberrypi-ui-mods") # Reinstall Raspberry Pi OS UI mods
578+
if not shell.is_minimum_version("trixie"):
579+
shell.run_command("apt-get -y install raspberrypi-ui-mods") # Reinstall Raspberry Pi OS UI mods
581580
shell.run_command("raspi-config nonint do_boot_target B2") # Boot to Desktop
582581

583582
if shell.exists("/etc/systemd/system/con2fbmap.service"):

0 commit comments

Comments
 (0)