Fix typo in reset
This commit is contained in:
parent
c5c1f649a3
commit
0cb9f79756
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