Bluetooth sequence logic was waiting for a callback that never came...
This commit is contained in:
parent
0b5e4c47d3
commit
68dab59e6b
3
index.js
3
index.js
|
@ -457,11 +457,10 @@ function bSequence (obj, cb) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (intval._state.sequence && sequence._state.active) {
|
if (intval._state.sequence && sequence._state.active) {
|
||||||
return sequence.setStop(() => {
|
sequence.setStop()
|
||||||
intval._state.sequence = false
|
intval._state.sequence = false
|
||||||
log.info('sequence stop', { method : 'ble', id : seq_id })
|
log.info('sequence stop', { method : 'ble', id : seq_id })
|
||||||
return cb()
|
return cb()
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
console.time('sequence time')
|
console.time('sequence time')
|
||||||
intval._state.sequence = true
|
intval._state.sequence = true
|
||||||
|
|
Loading…
Reference in New Issue