Push dev work to master #2
|
@ -11,14 +11,15 @@ const STATE = {
|
|||
scale : 'ms',
|
||||
delayScale : 'ms',
|
||||
counter : 0
|
||||
}
|
||||
};
|
||||
//functions
|
||||
let frame;
|
||||
let getState;
|
||||
let setDir;
|
||||
let setExposure;
|
||||
let setDelay;
|
||||
let setCounter;
|
||||
window.frame = null;
|
||||
window.getState = null;
|
||||
window.setDir = null;
|
||||
window.setExposure = null;
|
||||
window.setDelay = null;
|
||||
window.setCounter = null;
|
||||
|
||||
//ms
|
||||
var shutter = function (exposure) {
|
||||
let fraction = BOLEX.expected / 1000;
|
||||
|
|
|
@ -162,11 +162,11 @@ web.useJson = function (res) {
|
|||
return res.json();
|
||||
}
|
||||
web.init = function () {
|
||||
frame = web.frame;
|
||||
getState = web.getState;
|
||||
setDir = web.setDir;
|
||||
setExposure = web.setExposure;
|
||||
setCounter = web.setCounter;
|
||||
window.frame = web.frame;
|
||||
window.getState = web.getState;
|
||||
window.setDir = web.setDir;
|
||||
window.setExposure = web.setExposure;
|
||||
window.setCounter = web.setCounter;
|
||||
|
||||
web.getState();
|
||||
getState();
|
||||
};
|
Loading…
Reference in New Issue