Skip to content

unsigned variable compared to negative value #2

Description

@mfalkvidd

Thanks for sharing this code.

At https://github.com/ControlEverythingCommunity/MS5803-05BA/blob/master/Arduino/MS5803_05BA.ino#L135 this comparison exists:
if(temp < - 1500)

temp is an unsigned integer so it can never be <1500.

What is this comparison supposed to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions