From 02aea27ff95e3dd9e6bae6a1d1ef538781330ab2 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Wed, 20 Dec 2017 22:34:30 -0500 Subject: [PATCH] Log when sequences are started and stopped by release cable --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0277b61..fbfdd33 100644 --- a/index.js +++ b/index.js @@ -485,14 +485,16 @@ function seq () { let dir = intval._state.frame.dir let exposure = intval._state.frame.exposure let delay = intval._state.frame.delay - + if (intval._state.sequence && sequence._state.active) { + log.info('sequence', { method : 'release' , stop: true }) return sequence.setStop(() => { intval._state.sequence = false return cb() }) } else { console.time('sequence time') + log.info('sequence', { method : 'release', start : true }) intval._state.sequence = true sequence.start({ loop : [ (next) => {