Add logging back because release no longer works
This commit is contained in:
parent
19e6511559
commit
e2ee307824
|
@ -113,7 +113,6 @@ intval._undeclarePins = function (e) {
|
||||||
intval._startFwd = function () {
|
intval._startFwd = function () {
|
||||||
intval._pin.fwd.writeSync(1)
|
intval._pin.fwd.writeSync(1)
|
||||||
intval._pin.bwd.writeSync(0)
|
intval._pin.bwd.writeSync(0)
|
||||||
//start high-cpu watch
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Start motor in backward direction by setting correct pins in h-bridge
|
* Start motor in backward direction by setting correct pins in h-bridge
|
||||||
|
@ -206,7 +205,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)) {
|
||||||
|
|
Loading…
Reference in New Issue