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 6 additions and 3 deletions
Showing only changes of commit 2d0aaaca8c - Show all commits

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) {