From df106e6e90b8376d9129ede61195e355abb29a8a Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Fri, 20 Oct 2017 21:10:01 -0400 Subject: [PATCH] Remove some logging, clean up others --- lib/intval/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/intval/index.js b/lib/intval/index.js index 12b57f0..8640229 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -140,7 +140,7 @@ intval._stop = function () { const now = +new Date() const len = now - intval._state.frame.start - log.info(`Frame stopped ${len}ms`) + log.info(`_stop`, { frame : len }) intval._pin.micro.unwatch() intval._state.frame.active = false @@ -166,13 +166,13 @@ intval._watchMicro = function (err, val) { if (err) { log.error('_watchMicro', err) } - log.info(`Microswitch val: ${val}`) + //log.info(`Microswitch val: ${val}`) //determine when to stop if (val === 0 && intval._state.frame.active) { if (!intval._state.micro.primed) { intval._state.micro.primed = true intval._state.micro.time = NOW - log.info('Microswitch primed to stop motor') + //log.info('Microswitch primed to stop motor') } } else if (val === 1 && intval._state.frame.active) { if (intval._state.micro.primed && !intval._state.micro.paused) {