Skip to content

Commit

Permalink
Fix qrscan for switcam-hs303-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
flyrouter committed Aug 4, 2024
1 parent 04a0126 commit bb6fbf5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh

gpio=? # COLOR led, hi3518ev200_lite_switcam-hs303-v2
gpio=56 # COLOR led, hi3518ev200_lite_switcam-hs303-v2
n=0

# gpio clear ${gpio} | logger -t gpio
gpio set ${gpio} | logger -t gpio

while true ; do
if [ "$n" -ge 30 ]; then
logger -t qrscan "Recognition timeout exceeded, reboot camera and try again..."
# gpio set ${gpio} | logger -t gpio
gpio clear ${gpio} | logger -t gpio
exit 1
fi
timeout 1 wget -q -O /tmp/image.jpg http://127.0.0.1/image.jpg
Expand Down

0 comments on commit bb6fbf5

Please sign in to comment.