Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.1.x] Fix EEPROM CRC #8283

Merged
merged 1 commit into from Nov 7, 2017

Conversation

RowanMeara
Copy link
Contributor

@RowanMeara RowanMeara commented Nov 6, 2017

Changing the order in which the EEPROM is read changes the CRC. e642a64 changed the EEPROM read order without changing the write order. I reverted the problematic line so that I can read from the EEPROM again.

Fix EEPROM reversion.
@RowanMeara RowanMeara changed the title [1.1.x] Fixed EEPROM CRC [1.1.x] Fix EEPROM CRC Nov 6, 2017
@Roxy-3D
Copy link
Member

Roxy-3D commented Nov 7, 2017

I verified this fixes the EEPROM CRC issue for bugfix-v1.1.x

@Roxy-3D Roxy-3D merged commit 8e8787a into MarlinFirmware:bugfix-1.1.x Nov 7, 2017
@@ -1088,7 +1088,7 @@ void MarlinSettings::postprocess() {
stepperE4.setCurrent(val, R_SENSE, HOLD_MULTIPLIER);
#endif
#else
for (uint8_t q = 11; --q;) EEPROM_READ(val);
for (uint8_t q = 0; q < 11; q++) EEPROM_READ(val);
Copy link
Member

@thinkyhead thinkyhead Nov 7, 2017

Choose a reason for hiding this comment

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

This doesn't change the "read order," ya know.
The only issue was that it should've been q-- instead of --q to get the correct number of items.

Copy link
Member

Choose a reason for hiding this comment

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

Yes... And that is why I reverted #8284. I didn't test the bugfix-v2.0.0 branch, but it looked like it was OK.

Copy link
Contributor Author

@RowanMeara RowanMeara Nov 7, 2017

Choose a reason for hiding this comment

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

Oh duh... I'm smart... sorry guys.

@RowanMeara RowanMeara deleted the fix-eeprom-1.1.x branch November 7, 2017 04:06
mtm88001 pushed a commit to mtm88001/Marlin that referenced this pull request Dec 9, 2017
damicreabox pushed a commit to damicreabox/Marlin that referenced this pull request Sep 14, 2018
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.

None yet

3 participants