comment out stuff blonk

master
Bryan 2021-01-01 23:10:21 -06:00
parent 23231d47c4
commit 270299ca8b
1 changed files with 15 additions and 15 deletions

View File

@ -481,7 +481,7 @@ fi
read_AXP read_AXP
read_stats read_stats
#read_gpio #read_gpio
read_ip #read_ip
compile_report compile_report
compile_warnings compile_warnings
@ -497,19 +497,19 @@ fi
fi fi
######################################### #########################################
check_gpio_installed #check_gpio_installed
if [ -f /usr/local/bin/gpio.sh ]; then : #if [ -f /usr/local/bin/gpio.sh ]; then :
source /usr/local/bin/gpio.sh # source /usr/local/bin/gpio.sh
fi #fi
setup_gpio #setup_gpio
trap "blonk_stop" 1 2 3 15 trap "blonk_stop" 1 2 3 15
######################################### #########################################
LAST_TIME_SENSORS=`date +%s` LAST_TIME_SENSORS=`date +%s`
LAST_TIME_IP=`date +%s` #LAST_TIME_IP=`date +%s`
if [ $SERVICE ]; then if [ $SERVICE ]; then
while true; do : while true; do :
@ -532,17 +532,17 @@ fi
sleep 0.1 sleep 0.1
fi fi
if (( $TIME > $LAST_TIME_IP )); then #read and handle ip change #if (( $TIME > $LAST_TIME_IP )); then #read and handle ip change
#echo "reading IP" # #echo "reading IP"
read_ip # read_ip
manage_ip # manage_ip
LAST_TIME_IP=$((TIME+IP_READ_FREQUENCY)) # LAST_TIME_IP=$((TIME+IP_READ_FREQUENCY))
#echo $LAST_TIME_IP # #echo $LAST_TIME_IP
fi #fi
blink blink
sleep $BLINK_FREQUENCY_HALF sleep $BLINK_FREQUENCY_HALF
blink blink
sleep $BLINK_FREQUENCY_HALF sleep $BLINK_FREQUENCY_HALF
done done
fi fi