composer/projects/gk7205v300_ultimate_oko/general/overlay/usr/bin/af

26 lines
265 B
Bash
Executable File

#!/bin/sh
SLEEP=0.150
get_focus() {
RES=$(sample_af 0 c & sleep $SLEEP; killall sample_af)
RST=`echo ${RES} | awk '{print $1}'`
echo $RST
}
CR_L=$(get_focus)
if [[ $CR_L -lt 300 ]]
then
curz
fi
baf
CR_L=$(get_focus)
if [[ $CR_L -lt 300 ]]
then
baf
fi