Skip to content

Shift error #3

@Turbotronics

Description

@Turbotronics

Line 180 in cpp file reads wrong: *coeff = (rx_buf[0] << 8) | rx_buf[1];
Should read: *coeff = ((uint16_t)rx_buf[0] << 8) | rx_buf[1];
uint8_t variable will always be zero id shifted left by 8.

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