mirror of https://github.com/ArduPilot/ardupilot
GPS: fixed SIRF auto detect code
This commit is contained in:
parent
bec34f3af6
commit
dbf501c646
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue