Push dev work to master #2
19
index.js
19
index.js
|
@ -247,15 +247,6 @@ function rStatus (req, res, next) {
|
|||
return next()
|
||||
}
|
||||
|
||||
function rReset (req, res, next) {
|
||||
log.info'/reset', {time : +new Date()})
|
||||
intval.reset()
|
||||
setTimeout(() => {
|
||||
res.send(intval._state)
|
||||
return next()
|
||||
}, 10)
|
||||
}
|
||||
|
||||
function rSequence (req, res, next) {
|
||||
let dir = true
|
||||
let exposure = 0
|
||||
|
@ -345,6 +336,15 @@ function rSequence (req, res, next) {
|
|||
}
|
||||
}
|
||||
|
||||
function rReset (req, res, next) {
|
||||
log.info(`/reset`, {time : +new Date()})
|
||||
intval.reset()
|
||||
setTimeout(() => {
|
||||
res.send(intval._state)
|
||||
return next()
|
||||
}, 10)
|
||||
}
|
||||
|
||||
function rUpdate (req, res, next) {
|
||||
log.info(`/update`, { time : +new Date() })
|
||||
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
|
||||
|
@ -539,6 +539,7 @@ function bSequenceStop (obj, cb) {
|
|||
}
|
||||
|
||||
function bReset (obj, cb) {
|
||||
log.info(`reset`, { time : +new Date() })
|
||||
intval.reset()
|
||||
setTimeout(cb, 10)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue