auto-sync

This commit is contained in:
rusEfi 2016-02-05 18:01:25 -05:00
parent 48996efdf2
commit 013f62a240
1 changed files with 2 additions and 2 deletions

View File

@ -200,8 +200,8 @@ public class BinaryProtocol {
synchronized (ioLock) {
boolean isTimeout = incomingData.waitForBytes(2, start, "switch to binary");
if (isTimeout) {
logger.info("Timeout waiting for switch response");
close();
System.out.println("Timeout waiting for switch response");
return;
}
int response = incomingData.getShort();
@ -209,7 +209,7 @@ public class BinaryProtocol {
logger.error(String.format("Unexpected response [%x], re-trying", response));
continue;
}
logger.info("Switched to binary protocol");
logger.info(String.format("Got %x - switched to binary protocol", response));
}
} catch (IOException e) {
close();