X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao-tools%2Faltosui%2FAltosSerial.java;h=96e8b61f599d2329678dbe547b3edc3eb3389f11;hp=f12b31b3187e9b253b4a3560080db9d8e2966d7e;hb=e33dbbba94ce42295e9fed9f4ba7e46f9eff1517;hpb=8a6040e143ecc7830cc1c0114de85f3b72c067eb diff --git a/ao-tools/altosui/AltosSerial.java b/ao-tools/altosui/AltosSerial.java index f12b31b3..96e8b61f 100644 --- a/ao-tools/altosui/AltosSerial.java +++ b/ao-tools/altosui/AltosSerial.java @@ -51,6 +51,8 @@ public class AltosSerial implements Runnable { try { for (;;) { + if (altos == null) + break; c = libaltos.altos_getchar(altos, 0); if (Thread.interrupted()) break; @@ -139,7 +141,7 @@ public class AltosSerial implements Runnable { throw new FileNotFoundException(device.getPath()); input_thread = new Thread(this); input_thread.start(); - print("\nE 0\nm 1\n"); + print("\nE 0\n"); try { Thread.sleep(200); } catch (InterruptedException e) {