Fix direction label in mobile app (light up selected)
This commit is contained in:
parent
e6ce3cd977
commit
f9f98ebc02
|
@ -154,6 +154,9 @@ var setState = function (res) {
|
|||
document.getElementById('dir').checked = true;
|
||||
STATE.dir = res.frame.dir;
|
||||
setDirLabel(false);
|
||||
} else {
|
||||
STATE.dir = res.frame.dir;
|
||||
setDirLabel(true);
|
||||
}
|
||||
document.getElementById('counter').value = res.counter;
|
||||
STATE.counter = res.counter;
|
||||
|
|
|
@ -181,6 +181,9 @@ mobile.setDir = function () {
|
|||
mobile.dirSuccess = function () {
|
||||
console.log('Set direction');
|
||||
mobile.getState();
|
||||
setTimeout(() => {
|
||||
setDirLabel(STATE.dir);
|
||||
}, 50);
|
||||
};
|
||||
mobile.setExposure = function () {
|
||||
let exposure = document.getElementById('exposure').value;
|
||||
|
|
Loading…
Reference in New Issue