doorstate: Use variable instead of constant value

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2019-06-14 23:56:56 +02:00
parent caab43f4d3
commit 6fc923a371
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if [ "$(id -u)" != "0" ]; then
fi
while true; do
gpio-wait /dev/gpiochip0 22
gpio-wait /dev/gpiochip0 $GPIO
ret=$?
if [ $ret -eq 0 ]; then