Change was causing double frames. Remove for now.

This commit is contained in:
mmcwilliams 2018-01-09 15:09:39 -05:00
parent 757e3dd86d
commit ca4282c02f
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ intval._watchMicro = function (err, val) {
//log.info(`Microswitch val: ${val}`) //log.info(`Microswitch val: ${val}`)
//determine when to stop //determine when to stop
if (val === 0 && intval._state.frame.active) { if (val === 0 && intval._state.frame.active) {
if (!intval._state.micro.primed && (now - intval._state.frame.start) > 100) { if (!intval._state.micro.primed) {
intval._state.micro.primed = true intval._state.micro.primed = true
intval._state.micro.time = now intval._state.micro.time = now
log.info('Microswitch primed to stop motor') log.info('Microswitch primed to stop motor')