+ public void synchronize(int timeout) throws InterruptedException {
+ printf("v\n");
+ for (;;) {
+ String line = get_reply(timeout);
+
+ if (line == null)
+ break;
+ if (line.startsWith("software-version"))
+ break;
+ if (line.startsWith("altos-loader"))
+ break;
+ }
+ }
+