Remove extra log events

Test running test for extended length of time to test whether or not
errant 0 change events trigger frames
This commit is contained in:
mmcwilliams 2017-09-17 20:00:26 -04:00
parent f13d609fce
commit 2d0aaaca8c
1 changed files with 6 additions and 3 deletions

View File

@ -16,16 +16,19 @@ btn.watch((err, val) => {
if (err) {
return console.error(err)
}
console.log(`Release switch val: ${val}`)
//console.log(`Release switch val: ${val}`)
if (val === 1) {
console.log('open')
//console.log('open')
} else if (val === 0) {
console.log('closed')
//console.log('closed')
}
if (val === 0) {
if (saveTime === 0) {
saveTime = NOW
active = true //maybe unncecessary
} else {
//saveTime = 0
//active = false
}
} else if (val === 1) {
if (active) {