diff --git a/lib/db/index.js b/lib/db/index.js index f8c9c18..b391538 100644 --- a/lib/db/index.js +++ b/lib/db/index.js @@ -19,7 +19,8 @@ class DB { start INTEGER, stop INTEGER, len INTEGER, - counter INTEGER + counter INTEGER, + sequence INTEGER );` db.run(query) } diff --git a/lib/intval/index.js b/lib/intval/index.js index 5cecdff..5a0e05e 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -105,7 +105,8 @@ intval._setState = function (data) { time : 0, primed : false //is ready to stop frame }, - counter : 0 + counter : 0, + sequence : false } intval._storeState() } @@ -200,6 +201,7 @@ intval._stop = function () { entry.dir = intval._state.frame.current.dir ? 1 : 0 entry.exposure = intval._state.frame.current.exposure entry.counter = intval._state.counter + entry.sequence = intbal._state.sequence ? 1 : 0 db.insert(entry)