-
- /*
- */
- //Log.debug(this, "consuming any leftover data on the serial port");
-
- /*
- AvrDrone device = new AvrDrone(detectObitsPort());
- int count = 0;
- try {
- long begin = System.currentTimeMillis();
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- for(String str = br.readLine(); str != null; str = br.readLine()) {
- long foo = Long.parseLong(str, 16);
- device.mode4((int)(foo >> 24), (int)(foo >> 16), (int)(foo >> 8), (int)(foo >> 0));
- count++;
- if (count % 100 == 0) Log.info(Eltron.class, "wrote " + count + " configuration octets");
- }
- device.flush();
- long end = System.currentTimeMillis();
- Log.info(Eltron.class, "finished in " + ((end-begin)/1000) + "s");
- System.exit(0);
- } catch (Exception e) { e.printStackTrace(); }
- */
- System.exit(0);