GPS: fixed SIRF auto detect code

This commit is contained in:
Andrew Tridgell 2012-09-25 07:10:07 +10:00
parent bec34f3af6
commit dbf501c646
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ AP_GPS_SIRF::_accumulate(uint8_t val)
bool bool
AP_GPS_SIRF::_detect(uint8_t data) AP_GPS_SIRF::_detect(uint8_t data)
{ {
uint16_t checksum; static uint16_t checksum;
uint8_t step, payload_length, payload_counter; static uint8_t step, payload_length, payload_counter;
switch (step) { switch (step) {
case 1: case 1: