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:
parent
f13d609fce
commit
2d0aaaca8c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue