Skip to main content
Visitor II
February 16, 2025
Question

gnss libary includded in X-CUBE-GNSS1 libary

  • February 16, 2025
  • 1 reply
  • 302 views

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.

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    February 16, 2025

    Hello @mfried 

    Thank you so much for escalating this. I've sent your correction request for the « ==0 » to the concerned team for correction on the future releases (under internal ticket number 203896). But for the ||, I think it is correct since we need a logical and not a bitwise operator on the if conditions.

    Best Regards.

    STTwo-32