GPS: fixed SIRF auto detect code

This commit is contained in:
Andrew Tridgell 2012-09-25 07:10:07 +10:00
parent 89fa234233
commit 608cc60689

View File

@ -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: