AP_GPS: remove tabs and fix coding style

This commit is contained in:
Lucas De Marchi 2017-08-22 10:30:00 -07:00
parent 44ffb67837
commit 3414883f05
1 changed files with 41 additions and 41 deletions

View File

@ -204,8 +204,7 @@ AP_GPS_SIRF::_accumulate(uint8_t val)
/*
detect a SIRF GPS
*/
bool
AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
bool AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
{
switch (state.step) {
case 1:
@ -232,8 +231,9 @@ AP_GPS_SIRF::_detect(struct SIRF_detect_state &state, uint8_t data)
break;
case 4:
state.checksum = (state.checksum + data) & 0x7fff;
if (++state.payload_counter == state.payload_length)
if (++state.payload_counter == state.payload_length) {
state.step++;
}
break;
case 5:
state.step++;