Remove excessive logging

This commit is contained in:
mmcw-dev 2017-10-20 21:05:00 -04:00
parent f4d7d3c593
commit b22712053c
1 changed files with 6 additions and 6 deletions

View File

@ -127,7 +127,7 @@ intval._startBwd = function () {
intval._pause = function () { intval._pause = function () {
intval._pin.fwd.writeSync(0) intval._pin.fwd.writeSync(0)
intval._pin.bwd.writeSync(0) intval._pin.bwd.writeSync(0)
log.info('_pause', 'frame paused') //log.info('_pause', 'frame paused')
} }
/** /**
* Stop motor by setting both motor pins to 0 (LOW) * Stop motor by setting both motor pins to 0 (LOW)
@ -206,7 +206,7 @@ intval._watchRelease = function (err, val) {
if (err) { if (err) {
return log.error(err) return log.error(err)
} }
log.info(`Release switch val: ${val}`) //log.info(`Release switch val: ${val}`)
if (val === 0) { if (val === 0) {
//closed //closed
if (intval._releaseClosedState(now)) { if (intval._releaseClosedState(now)) {
@ -222,7 +222,7 @@ intval._watchRelease = function (err, val) {
} else if (press >= intval._release.seq) { } else if (press >= intval._release.seq) {
intval.sequence() intval.sequence()
} }
log.info(`Release closed for ${press}ms`) //log.info(`Release closed for ${press}ms`)
intval._state.release.time = 0 intval._state.release.time = 0
intval._state.release.active = false intval._state.release.active = false
} }
@ -296,16 +296,16 @@ intval.frame = function (dir = null, time = null) {
intval._state.frame.paused = true intval._state.frame.paused = true
setTimeout(intval._pause, intval._state.frame.open) setTimeout(intval._pause, intval._state.frame.open)
if (dir) { if (dir) {
log.info('frame', { pausing : time + intval._state.frame.open }) //log.info('frame', { pausing : time + intval._state.frame.open })
setTimeout( () => { setTimeout( () => {
log.info('frame', 'restarting') //log.info('frame', 'restarting')
intval._state.frame.paused = false intval._state.frame.paused = false
intval._startFwd() intval._startFwd()
}, time + intval._state.frame.closed) }, time + intval._state.frame.closed)
} else { } else {
log.info('frame', { pausing : time + intval._state.frame.open }) log.info('frame', { pausing : time + intval._state.frame.open })
setTimeout( () => { setTimeout( () => {
log.info('frame', 'restarting') //log.info('frame', 'restarting')
intval._state.frame.paused = false intval._state.frame.paused = false
intval._startBwd() intval._startBwd()
}, time + intval._state.frame.closed) }, time + intval._state.frame.closed)