Fixed over 1000ms sequence logic

This commit is contained in:
mmcwilliams 2017-09-17 19:57:38 -04:00
parent 4cb28c024d
commit f13d609fce
1 changed files with 2 additions and 2 deletions

View File

@ -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}`)