Push dev work to master #2
|
@ -6,7 +6,7 @@ const fs = require('fs')
|
|||
|
||||
let Gpio
|
||||
try {
|
||||
//Gpio = require('onoff').Gpio
|
||||
Gpio = require('onoff').Gpio
|
||||
} catch (e) {
|
||||
log.warn('Failed including Gpio, using sim')
|
||||
Gpio = require('../../lib/onoffsim').Gpio
|
||||
|
@ -283,6 +283,12 @@ intval._releaseClosedState = function (now) {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
intval.reset = function () {
|
||||
intval._setState(undefined)
|
||||
intval._storeState()
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the default direction of the camera.
|
||||
* * forward = true
|
||||
|
|
Loading…
Reference in New Issue