Only test microswitch

This commit is contained in:
mmcw-dev 2017-10-19 19:22:21 -04:00
parent 988cf6a786
commit 5097ed87ea
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ function releaseTest () {
return console.error(err) return console.error(err)
} }
//console.log(`Release switch val: ${val}`) //console.log(`Release switch val: ${val}`)
console.log(`RELEASE: ${val} ${active} ${NOW} ${saveTime}`) //console.log(`RELEASE: ${val} ${active} ${NOW} ${saveTime}`)
if (val === 0) { if (val === 0) {
//console.log('closed') //console.log('closed')
} else if (val === 1) { } else if (val === 1) {
@ -57,7 +57,7 @@ function releaseTest () {
} else if (NOW - saveTime >= 1000) { } else if (NOW - saveTime >= 1000) {
console.log('Started Sequence') console.log('Started Sequence')
} }
console.log(`Release closed for ${NOW - saveTime}`) //console.log(`Release closed for ${NOW - saveTime}`)
saveTime = 0 saveTime = 0
active = false active = false
} }