Skip to content

EepromMcuWriteBuffer hides write errors reported by the EEPROM emulation code #1620

@nfroggy

Description

@nfroggy

This happens at least on the Nucleo476 example code. The problem is that whoever implemented the error handling seemingly didn't understand how the EE_STATUSMASK bitmasks should be used. This line should be if( eeStatus & EE_STATUSMASK_CLEANUP ), and this line should be if( eeStatus & EE_STATUSMASK_ERROR ). The EE_STATUSMASK_CLEANUP line happens to work because there's only one bit set in that mask. The EE_STATUSMASK_ERROR mask doesn't work at all because it's 0xff, so it would require eeStatus to be 0xff which never happens.

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