Skip to content

Option to make bulk write only write changes #37

Closed
@merlinz01

Description

@merlinz01

Subject of the issue

Currently when you call put() with a struct, the entire struct is written to the memory whether or not anything changed. Could we have a method that checks it byte-by-byte and writes only the changed bytes, in order to preserve the EEPROM lifetime?

Or does the EEPROM do this internally?

Your workbench

  • What development board or microcontroller are you using? N/A
  • What version of hardware or breakout board are you using? 24C02
  • How is the breakout board wired to your microcontroller? I2C
  • How is everything being powered? N/A
  • Are there any additional details that may help us help you? N/A

Steps to reproduce

Call eeprom.put(MyStruct).

Expected behavior

There should be a method or parameter that does the same thing but checks for changes so that we don't put unnecessary wear on the EEPROM.

Actual behavior

The entire struct is written whether or not it changed.

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