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

Persist G92 and G43.1 #624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dshaded
Copy link

@dshaded dshaded commented Mar 18, 2019

This patch addresses issue #623 . It adds EEPROM persistence to G92 and G43.1 parameters, reduces flash consumption by approximately 150 bytes but increases RAM consumption by 8 bytes.

@cri-s
Copy link

cri-s commented Mar 18, 2019 via email

@dshaded
Copy link
Author

dshaded commented Mar 19, 2019

I have looked through mc_reset code and didn't see anything that messes up with coordinate systems. Why do you think it should reset G92?
And by cycle counts you mean increasing number of physical writes to eeprom? That's absolutely ok for avr's. And simulating eeprom with flash is kind of a desperate measure when you can't use external eeprom or battery-backed memory domain. And when you can't use G92 or G43.1 to set TLO because they are lost on every controller reset you usually use G54-59 corrections for that purpose, at least with bCNC.
Not sure about caching coordinates into ram as I don't see any issues with character loss and ram constraints are really tight on 328p.

@cri-s
Copy link

cri-s commented Mar 19, 2019 via email

cri-s added a commit to cri-s/grbl-1 that referenced this pull request Mar 19, 2019
This is alternative implementation of the gnea#624 , untested. @dshaded should test it or if hi don't like it close it. 
The gnea#624 implementation have some side effects, and this is the reason i have proposed this. In addition i have included persistency
of G54 to G59 coordinates.
@dshaded
Copy link
Author

dshaded commented Mar 25, 2019

Sorry @cri-s but your changes are exactly opposite to what I'd like to achieve.

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