V2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user