Skip to content

Alway print math overflow #1

@kklam4697

Description

@kklam4697

Please ask your question

Very Lucky that 2 day before I need the INA226 driver and you upload this repo. Thank you.
I found the driver alway print math overflow, but when I comment below code segment, It can read Volt and Current and the number look ok...
Not sure if this is a driver issue or my coding issue

//    if ((prev & (1 << 2)) != 0)                                                         /* check math overflow */
//    {
//        handle->debug_print("ina226: math overflow.\n");                                /* math overflow */
//
//        return 4;                                                                       /* return error */
//    }

Additional context

Image

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions