cancel
Showing results for 
Search instead for 
Did you mean: 

gnss libary includded in X-CUBE-GNSS1 libary

mfried
Associate

i want to report a bug entered in the GNSS libary. in the LibNMEA in the file NMEA_parser.c

in line 679:

        if (strcmp((char *)app[0], "$GPGST") == 0 || strcmp((char *)app[0], "$GNGST"))

missing the == 0 part.

and in line 734

        if (strcmp((char *)app[0], "$GPRMC") == 0 | strcmp((char *)app[0], "$GNRMC") == 0)

puting binary or ( | ) insted of logic or ( || ).

this is only after the latast changes adding support to GN family.

 

1 REPLY 1
STTwo-32
ST Employee

Hello @mfried 

Thank you so much for escalating this. I will send your correction request for the « ==0 » to the concerned team for correction on the future releases. But for the ||, I think it is correct since we need a logical and not a bitewise operator on the if conditions.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.