Edit: Button Press
If there is loot you have 5 seconds to press the button again (in this 5 seconds its blinking light blue). If done the payload is stopped. If the button is not pressed the payload keeps running until it's pressed again.pull/23/head
parent
b46d0b8d2d
commit
ff32e6c548
|
@ -45,6 +45,7 @@ function run() {
|
||||||
do
|
do
|
||||||
NO_LED=true BUTTON && {
|
NO_LED=true BUTTON && {
|
||||||
checkLog && {
|
checkLog && {
|
||||||
|
BUTTON 5s && {
|
||||||
LED FINISH
|
LED FINISH
|
||||||
kill $npid
|
kill $npid
|
||||||
|
|
||||||
|
@ -52,6 +53,7 @@ function run() {
|
||||||
|
|
||||||
LED OFF
|
LED OFF
|
||||||
halt
|
halt
|
||||||
|
}
|
||||||
} || {
|
} || {
|
||||||
LED FAIL
|
LED FAIL
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
Loading…
Reference in New Issue