Fix typo in reset

This commit is contained in:
mmcwilliams 2018-02-08 16:16:44 -05:00
parent c5c1f649a3
commit 0cb9f79756
1 changed files with 10 additions and 9 deletions

View File

@ -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)
}