From dbf501c646532092229df72b7ca2758209954d14 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Sep 2012 07:10:07 +1000 Subject: [PATCH] GPS: fixed SIRF auto detect code --- libraries/AP_GPS/AP_GPS_SIRF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_SIRF.cpp b/libraries/AP_GPS/AP_GPS_SIRF.cpp index 641ff9477f..d11aab44b8 100644 --- a/libraries/AP_GPS/AP_GPS_SIRF.cpp +++ b/libraries/AP_GPS/AP_GPS_SIRF.cpp @@ -204,8 +204,8 @@ AP_GPS_SIRF::_accumulate(uint8_t val) bool AP_GPS_SIRF::_detect(uint8_t data) { - uint16_t checksum; - uint8_t step, payload_length, payload_counter; + static uint16_t checksum; + static uint8_t step, payload_length, payload_counter; switch (step) { case 1: