Skip to content

Commit

Permalink
fix ssd and panda 1.8 gpio conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 17, 2024
1 parent 7f6f15a commit 8d7d1a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions userspace/usr/comma/gpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ pins=(

for p in ${pins[@]}; do
echo $p

# this is SSD_3v3 EN on tici
if [ "$p" -eq 41 ] && grep -q "comma tici" /sys/firmware/devicetree/base/model; then
echo "Skipping $p"
continue
fi

echo $p > /sys/class/gpio/export
until [ -d /sys/class/gpio/gpio$p ]
do
Expand Down

0 comments on commit 8d7d1a8

Please sign in to comment.