GPGSA support: fix indentation
This commit is contained in:
parent
da55e342e3
commit
a04115b3f4
27
minmea.c
27
minmea.c
@ -335,7 +335,8 @@ bool minmea_parse_gpgga(struct minmea_gpgga *frame, const char *sentence)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool minmea_parse_gpgsa(struct minmea_gpgsa *frame, const char *sentence){
|
||||
bool minmea_parse_gpgsa(struct minmea_gpgsa *frame, const char *sentence)
|
||||
{
|
||||
// $GPGSA,A,3,04,05,,09,12,,,24,,,,,2.5,1.3,2.1*39
|
||||
char type[6];
|
||||
|
||||
@ -364,32 +365,24 @@ bool minmea_parse_gpgsa(struct minmea_gpgsa *frame, const char *sentence){
|
||||
)){
|
||||
return false;
|
||||
}
|
||||
if (strcmp(type, "GPGSA")){
|
||||
if (strcmp(type, "GPGSA"))
|
||||
return false;
|
||||
}
|
||||
|
||||
if(frame->mode == 'A'){
|
||||
if (frame->mode == 'A')
|
||||
frame->mode = GPGSA_MODE_AUTO;
|
||||
}
|
||||
else if(frame->mode == 'M'){
|
||||
else if (frame->mode == 'M')
|
||||
frame->mode = GPGSA_MODE_FORCED;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
if(frame->fix_type == 1){
|
||||
if (frame->fix_type == 1)
|
||||
frame->fix_type = GPGSA_FIX_NONE;
|
||||
}
|
||||
else if(frame->fix_type == 2){
|
||||
else if (frame->fix_type == 2)
|
||||
frame->fix_type = GPGSA_FIX_2D;
|
||||
}
|
||||
else if(frame->fix_type == 3){
|
||||
else if (frame->fix_type == 3)
|
||||
frame->fix_type = GPGSA_FIX_3D;
|
||||
}
|
||||
else{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user