remove more from blonk
parent
4f2996c7e2
commit
e7b8662ce4
11
blonk.sh
11
blonk.sh
|
|
@ -317,11 +317,6 @@ compile_warnings(){
|
|||
|
||||
handle_warnings(){
|
||||
echo
|
||||
}
|
||||
|
||||
blink(){
|
||||
gpio_output $BLINK_GPIO $BLINK_GPIO_STATE
|
||||
BLINK_GPIO_STATE=$((1-BLINK_GPIO_STATE))
|
||||
}
|
||||
|
||||
check_i2c_installed
|
||||
|
|
@ -359,7 +354,6 @@ BLINK_GPIO_STATE=$((1-BLINK_GPIO_STATE))
|
|||
#echo $TIME
|
||||
#echo $LAST_TIME_SENSORS
|
||||
if (( $TIME > $LAST_TIME_SENSORS )); then #read and handle sensors
|
||||
blink
|
||||
#echo "reading sensors"
|
||||
read_AXP
|
||||
read_stats
|
||||
|
|
@ -368,14 +362,9 @@ BLINK_GPIO_STATE=$((1-BLINK_GPIO_STATE))
|
|||
#handle_warnings
|
||||
LAST_TIME_SENSORS=$((TIME+SENSOR_READ_FREQUENCY))
|
||||
#echo $LAST_TIME_SENSORS
|
||||
blink
|
||||
sleep 0.1
|
||||
fi
|
||||
|
||||
|
||||
blink
|
||||
sleep $BLINK_FREQUENCY_HALF
|
||||
blink
|
||||
sleep $BLINK_FREQUENCY_HALF
|
||||
done
|
||||
# fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue