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

View File

@ -84,7 +84,10 @@ class Intval {
* *
*/ */
_undeclarePins () { _undeclarePins () {
if (!this._pin) return process.exit() if (!this._pin) {
log.warn('_undeclarePins', { reason : 'No pins'})
return process.exit()
}
log.warn('_undeclarePins', { pin : PINS.fwd.pin, val : 0, reason : 'exiting'}) log.warn('_undeclarePins', { pin : PINS.fwd.pin, val : 0, reason : 'exiting'})
this._pin.fwd.writeSync(0) this._pin.fwd.writeSync(0)
log.warn('_undeclarePins', { pin : PINS.bwd.pin, val : 0, reason : 'exiting'}) log.warn('_undeclarePins', { pin : PINS.bwd.pin, val : 0, reason : 'exiting'})