This commit is contained in:
alexgobbo
2025-09-12 16:16:15 +02:00
parent 68c510e707
commit ba17725e75
22 changed files with 53 additions and 38 deletions

View File

@@ -32,7 +32,7 @@ public class BarcodeReaderPanel extends DevicePanel {
public void onTimer(){
if ((getDevice()!=null) && enabled){
if ((future==null) || (future.isDone())){
future = Context.getInterpreter().evalLineBackgroundAsync(getDevice().getName() + ".get()");
future = Context.getSequencer().evalLineBackgroundAsync(getDevice().getName() + ".get()");
}
}
}
@@ -40,7 +40,7 @@ public class BarcodeReaderPanel extends DevicePanel {
void execute(String statement, boolean showReturn){
try {
Context.getInterpreter().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
Context.getSequencer().evalLineBackgroundAsync(statement).handle((ret, ex) -> {
if (BarcodeReaderPanel.this.isShowing()){
if (ex != null){
showException((Exception)ex);