Accidentally commented out gpio from intval module
This commit is contained in:
parent
b307567a51
commit
7ac642ee30
|
@ -6,7 +6,7 @@ const fs = require('fs')
|
||||||
|
|
||||||
let Gpio
|
let Gpio
|
||||||
try {
|
try {
|
||||||
//Gpio = require('onoff').Gpio
|
Gpio = require('onoff').Gpio
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.warn('Failed including Gpio, using sim')
|
log.warn('Failed including Gpio, using sim')
|
||||||
Gpio = require('../../lib/onoffsim').Gpio
|
Gpio = require('../../lib/onoffsim').Gpio
|
||||||
|
@ -283,6 +283,12 @@ intval._releaseClosedState = function (now) {
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
intval.reset = function () {
|
||||||
|
intval._setState(undefined)
|
||||||
|
intval._storeState()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the default direction of the camera.
|
* Set the default direction of the camera.
|
||||||
* * forward = true
|
* * forward = true
|
||||||
|
|
Loading…
Reference in New Issue