Fixed version check for AOA 2.0
Fork of AndroidAccessory by
Revision 3:e7435fada96a, committed 2015-11-29
- 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 |
diff -r 98fbe1660f0a -r e7435fada96a AndroidAccessory.cpp --- 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 {