AP_GPS: remove tabs and fix coding style
This commit is contained in:
parent
44ffb67837
commit
3414883f05
@ -204,8 +204,7 @@ AP_GPS_SIRF::_accumulate(uint8_t val)
|
|||||||
/*
|
/*
|
||||||
detect a SIRF GPS
|
detect a SIRF GPS
|
||||||
*/
|
*/
|
||||||
bool
|
bool AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
|
||||||
AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
|
|
||||||
{
|
{
|
||||||
switch (state.step) {
|
switch (state.step) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -232,8 +231,9 @@ AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
|
|||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
state.checksum = (state.checksum + data) & 0x7fff;
|
state.checksum = (state.checksum + data) & 0x7fff;
|
||||||
if (++state.payload_counter == state.payload_length)
|
if (++state.payload_counter == state.payload_length) {
|
||||||
state.step++;
|
state.step++;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
state.step++;
|
state.step++;
|
||||||
|
Loading…
Reference in New Issue
Block a user