Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 4cb28c024d - Show all commits

View File

@ -17,11 +17,18 @@ btn.watch((err, val) => {
return console.error(err)
}
console.log(`Release switch val: ${val}`)
if (val === 1) {
console.log('open')
} else if (val === 0) {
console.log('closed')
}
if (val === 0) {
if (saveTime === 0) {
saveTime = NOW
active = true //maybe unncecessary
} else if (active) {
}
} else if (val === 1) {
if (active) {
if (NOW - saveTime > 100) {
console.log('Started Frame')
} else if (NOW - saveTime > 1000) {