some redefinition done in the struct and some troubleshooting
This commit is contained in:
@@ -23,6 +23,8 @@ static int findLenToChar(const char *str, const char character){
|
||||
|
||||
static int sGPGLL_decode(cm_nmea_msg_t *inst, char *str){
|
||||
|
||||
printf("%s \r\n ",str);
|
||||
|
||||
//Move pointer until we meet a "," or NULL!
|
||||
while((str != NULL) && (*str != ',')) str++;
|
||||
|
||||
@@ -36,7 +38,7 @@ static int sGPGLL_decode(cm_nmea_msg_t *inst, char *str){
|
||||
str[comma_idx] = '\0';
|
||||
|
||||
// Decode first part of latitude
|
||||
inst->gpgll_msg.coordinates.deg = atoi(str);
|
||||
inst->gpgll_msg.coordinates.lat_deg = atoi(str);
|
||||
|
||||
printf("deg: %d, str: %s \r\n ",comma_idx,str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user