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