ADK 2011 library fix, protocol check for Jellybean release (Issue b/6547558)
Change-Id: Iaf7bbc37b58749da7eeb8db3f5bb1c6c1d745f57
diff --git a/AndroidAccessory/AndroidAccessory.cpp b/AndroidAccessory/AndroidAccessory.cpp
index 59a6739..8965cbd 100644
--- a/AndroidAccessory/AndroidAccessory.cpp
+++ b/AndroidAccessory/AndroidAccessory.cpp
@@ -83,8 +83,8 @@
{
int protocol = getProtocol(addr);
- if (protocol == 1) {
- Serial.print("device supports protcol 1\n");
+ if (protocol >= 1) {
+ Serial.print("device supports protocol 1 or higher\n");
} else {
Serial.print("could not read device protocol version\n");
return false;