From 1f05e7dafbedbdee3fec79c8888d634fe0cd3a2f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Feb 2012 12:37:43 +1100 Subject: [PATCH] fixed types in GPS detect code using int everywhere is wasteful and non-portable --- libraries/AP_GPS/AP_GPS_Auto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_Auto.cpp b/libraries/AP_GPS/AP_GPS_Auto.cpp index 4eaa531a4b8..55807f4c522 100644 --- a/libraries/AP_GPS/AP_GPS_Auto.cpp +++ b/libraries/AP_GPS/AP_GPS_Auto.cpp @@ -97,9 +97,9 @@ GPS * AP_GPS_Auto::_detect(void) { unsigned long then; - int fingerprint[4]; - int tries; - int charcount; + uint8_t fingerprint[4]; + uint8_t tries; + uint16_t charcount; GPS *gps; //