Skip to content

Commit

Permalink
Fix GPIO issue
Browse files Browse the repository at this point in the history
Fixes #67
  • Loading branch information
avanc committed Dec 27, 2021
1 parent 2b1f7e9 commit 3fef2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/photoframe/photoframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function is_gpio_pressed() {
return
fi

if [ "$(cat /sys/class/gpio/gpio${GPIO_PIN_NEXT}/value)" -eq "${GPIO_ACTION_VALUE}" ]
if [ "$(cat /sys/class/gpio/gpio${1}/value)" -eq "${GPIO_ACTION_VALUE}" ]
then
true
return
Expand Down

0 comments on commit 3fef2e2

Please sign in to comment.