Skip to content

Single | symbol for comparison #2

Description

@ViniciusAguiar40

https://github.com/STMicroelectronics/x-cube-gnss1/blob/46ee7dc9d11b7f7eed57caf624c1dd4cedb03e0d/Middlewares/ST/lib_gnss/LibNMEA/Src/NMEA_parser.c#L734C9-L734C91

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

It is using a single | (bitwise OR) instead of || (logical OR) for comparing two conditions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions