From 3b8839d2f7560d66bf355aaacaea73e68f6a602c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 11 Apr 2014 21:32:55 +1000 Subject: [PATCH] AP_GPS: fixed num_sensors on APM2 --- libraries/AP_GPS/AP_GPS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_GPS/AP_GPS.cpp b/libraries/AP_GPS/AP_GPS.cpp index e8ce61412b..1d655e7c30 100644 --- a/libraries/AP_GPS/AP_GPS.cpp +++ b/libraries/AP_GPS/AP_GPS.cpp @@ -291,6 +291,8 @@ AP_GPS::update(void) primary_instance = i; } } +#else + num_instances = 1; #endif // GPS_MAX_INSTANCES }