checkpoint
[slipway.git] / src / edu / berkeley / obits / device / atmel / AvrDrone.java
index 47aa49d..ce3a083 100644 (file)
@@ -41,7 +41,11 @@ public class AvrDrone extends AtmelDevice {
         */
         byte[] bytes = new byte[6];
         int i=0;
+
         out.write(0);
+        out.flush();
+
+        // read any crap that might be left in the buffer
         while(true) {
             System.arraycopy(bytes, 1, bytes, 0, 5);
             bytes[5] = in.readByte();