Fixed version check for AOA 2.0

Fork of AndroidAccessory by Giles Barton-Owen

Files at this revision

API Documentation at this revision

Comitter:
vargham
Date:
Sun Nov 29 15:58:55 2015 +0000
Parent:
2:98fbe1660f0a
Commit message:
Fixed version check for AOA 2.0

Changed in this revision

AndroidAccessory.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AndroidAccessory.cpp	Tue Aug 02 08:36:49 2011 +0000
+++ b/AndroidAccessory.cpp	Sun Nov 29 15:58:55 2015 +0000
@@ -177,7 +177,7 @@
 
 bool AndroidAccessory::switchDevice(int device) {
 
-    if (1==getProtocol(device)) {
+    if (1<=getProtocol(device)) {
         log("device supports protocol 1\r\n");
 
     } else {