Fixed over 1000ms sequence logic
This commit is contained in:
parent
4cb28c024d
commit
f13d609fce
|
@ -29,9 +29,9 @@ btn.watch((err, val) => {
|
|||
}
|
||||
} else if (val === 1) {
|
||||
if (active) {
|
||||
if (NOW - saveTime > 100) {
|
||||
if (NOW - saveTime > 50 && NOW - saveTime < 1000) {
|
||||
console.log('Started Frame')
|
||||
} else if (NOW - saveTime > 1000) {
|
||||
} else if (NOW - saveTime >= 1000) {
|
||||
console.log('Started Sequence')
|
||||
}
|
||||
console.log(`Release closed for ${NOW - saveTime}`)
|
||||
|
|
Loading…
Reference in New Issue