Skip to content

Bug in test_I2C_CLS-TMP2.cpp #2

@tonyraca-commits

Description

@tonyraca-commits

line 64 has a logical error:
if ((value >> 15) & 1 == 0) {
should be changed to:
if (((value >> 15) & 1) == 0) {

The parentheses around the AND operation were missing so the wrong logical comparison was being performed.

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