Skip to content

Bug: I2C EEPROM initialization not working properly #235

@nielsonm236

Description

@nielsonm236

While performing some code examination I found a bug in calls to the "copy_STM8_bytes_to_I2C_EEPROM()" function. Those calls were intended to perform I2C EEPROM "fill with 0" or fill with some other constant as part of initialization of those I2C EEPROM areas. Instead the calls were filling the first byte with the constant, and the remaining were writes had random data. I wrote a new function "init_I2C_EEPROM()" to implement the intended outcome. I may combine these later if it results in code space savings.

I'm not sure this was causing any user issues. The fix will be included in the next major release.

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