From 5379e0123a694a4f2076086d1d121f691a1f6f90 Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Fri, 25 May 2012 12:18:09 -0700 Subject: ADK 2011 library fix, protocol check for Jellybean release (Issue b/6547558) Change-Id: Iaf7bbc37b58749da7eeb8db3f5bb1c6c1d745f57 --- AndroidAccessory/AndroidAccessory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ bool AndroidAccessory::switchDevice(byte addr) { 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; -- cgit v1.2.3