Sync HS303-v* profiles

This commit is contained in:
Signor Pellegrino
2024-08-03 19:03:57 +03:00
parent 9033b8c746
commit a720c8045a
12 changed files with 77 additions and 20 deletions

View File

@@ -1,13 +1,14 @@
#!/bin/sh
gpio=1 # RED led, hi3518ev200_lite_switcam-hs303-v3
n=0
gpio clear 1 | logger -t gpio # RED led, hi3518ev200_lite_switcam-hs303-v3
gpio clear ${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 1 | logger -t gpio
gpio set ${gpio} | logger -t gpio
exit 1
fi
timeout 1 wget -q -O /tmp/image.jpg http://127.0.0.1/image.jpg