Fix intval bug and apply UI projector value change to digital file state.
This commit is contained in:
parent
bf148c6784
commit
723b23fa41
|
@ -427,7 +427,7 @@ proj.set = async function (dir, id) {
|
|||
cmd = mcopy.cfg.arduino.cmd.proj_backward
|
||||
}
|
||||
proj.state.dir = dir
|
||||
if (proj.digital) {
|
||||
if (proj.state.digital) {
|
||||
dig.set(dir)
|
||||
} else {
|
||||
try {
|
||||
|
@ -470,6 +470,8 @@ proj.listen = function () {
|
|||
} catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
} else if (typeof arg.val !== 'undefined') {
|
||||
dig.state.frame = arg.val
|
||||
}
|
||||
event.returnValue = true
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue