Skip to content

Updated all references of EEPROM.write to EEPROM.update - #18

Merged
nseidle merged 1 commit into
sparkfun:masterfrom
makinako:patch/eeprom-update
Jan 30, 2019
Merged

Updated all references of EEPROM.write to EEPROM.update#18
nseidle merged 1 commit into
sparkfun:masterfrom
makinako:patch/eeprom-update

Conversation

@makinako

@makinako makinako commented Jan 30, 2019

Copy link
Copy Markdown
Contributor

Patch to reduce unnecessary EEPROM writes by using .update() method, which compares the current value first. The comparatively small cost of the read should be more than made up for by the reduction in writes for the majority of operations. Also since there is currently no way to read the settings back, it reduces writes where application firmware needs to set the OpenLCD to an initial state at reset.

This resolves issue #16 and has been tested using a Serial connection only.

Patch to reduce unnecessary EEPROM writes by using .update() method, which compares the current value. The comparatively small cost of the read should be more than made up for by the reduction in writes for most operations. Also since there is currently no way to read the settings back, it reduces writes where firmware needs to set the OpenLCD to a default state every reset.
@nseidle

nseidle commented Jan 30, 2019

Copy link
Copy Markdown
Member

I had just pulled hardware out to work on this and you've got it done! Thank you so much.

@nseidle
nseidle merged commit 5287e59 into sparkfun:master Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants