mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
GPS - handle data loss occurs in the start of a UBLOX frame
This commit is contained in:
parent
20f32d632c
commit
1c8416db2c
2 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build_config.h"
|
||||
|
||||
#include "common/maths.h"
|
||||
|
||||
#include "drivers/system.h"
|
||||
|
@ -908,6 +910,9 @@ static bool gpsNewFrameUBLOX(uint8_t data)
|
|||
_skip_packet = true;
|
||||
}
|
||||
_payload_counter = 0; // prepare to receive payload
|
||||
if (_payload_length == 0) {
|
||||
_step = 7;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
_ck_b += (_ck_a += data); // checksum byte
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue