Fixup PiSRF node for latest Bookworm

to close #1078
This commit is contained in:
Dave Conway-Jones
2024-08-11 22:00:36 +01:00
parent 900339e2ba
commit df6eae9ee9
5 changed files with 45 additions and 21 deletions

8
hardware/PiSrf/testgpio Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
python_cmd='python3'
# Fallback to Python 2, if Python 3 is not available
command -v python3 > /dev/null || python_cmd='python'
BASEDIR=$(dirname $0)
$python_cmd -u $BASEDIR/testgpio.py $@