mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_GPS: minor bracketing fix
This silences a warning from eclipse No functional change
This commit is contained in:
parent
5de64273ec
commit
b7ad8da9b9
@ -998,7 +998,7 @@ void AP_GPS::handle_gps_rtcm_data(const mavlink_message_t *msg)
|
||||
// see if this fragment is consistent with existing fragments
|
||||
if (rtcm_buffer->fragments_received &&
|
||||
(rtcm_buffer->sequence != sequence ||
|
||||
rtcm_buffer->fragments_received & (1U<<fragment))) {
|
||||
(rtcm_buffer->fragments_received & (1U<<fragment)))) {
|
||||
// we have one or more partial fragments already received
|
||||
// which conflict with the new fragment, discard previous fragments
|
||||
memset(rtcm_buffer, 0, sizeof(*rtcm_buffer));
|
||||
|
Loading…
Reference in New Issue
Block a user