Skip to content

[2.0.x] Use the new const functions of the persistentStore api #11544

Merged
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.0.xfrom
hasenbanck:const-eeprom
Aug 14, 2018
Merged

[2.0.x] Use the new const functions of the persistentStore api #11544
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.0.xfrom
hasenbanck:const-eeprom

Conversation

@hasenbanck
Copy link
Contributor

Description

I cleaned up some functions by using the new const functions of the peristentStore api.

Benefits

Code cleanup. Consistent API usage.

Copy link
Contributor

@gloomyandy gloomyandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 79 printercounter.cpp:
persistentStore.write_data(address, (uint8_t*)0x16, sizeof(uint8_t));

This does not look right. Do you really want to write whatever data is at location 0x16 in RAM into the store?

@hasenbanck
Copy link
Contributor Author

You're right. This slipped through with 577aeb4 . I will add the fix right away.

hasenbanck and others added 3 commits August 14, 2018 17:54
I cleaned up some functions by using the new const functions
of the peristentStore api.
We want to save value 0x16 and not write the value of 0x16 into
the address.
@thinkyhead thinkyhead merged commit b37bfef into MarlinFirmware:bugfix-2.0.x Aug 14, 2018
@hasenbanck hasenbanck deleted the const-eeprom branch September 21, 2018 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants