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 1 additions and 1 deletions
Showing only changes of commit ca4282c02f - Show all commits

View File

@ -239,7 +239,7 @@ intval._watchMicro = function (err, val) {
//log.info(`Microswitch val: ${val}`)
//determine when to stop
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.time = now
log.info('Microswitch primed to stop motor')