-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] mc-apply script doesn't function #27612
Comments
in older marlin
and the script got now
|
first attempt removed... |
Yeah, there's still a few cases that this doesn't cover (did it ever?)
Or am I misunderstanding and no values from
There are a bunch of |
e.g.,
etc. |
I see a light at the end of the tunnel... In
but the value is > 5 The answer is
101 processes both This is a red herring, we are only looking at type 1 |
I tried the new scrip above but it still outputs not found.
|
it expects marlin_config.json in the directory you invoke the script from ie in this case But its not complete yet... |
Ok, Ive tried it in there (the root folder with configs h, and /src. I'll wait for an update. Thanks for all your hard work. |
Moved code updates to pull request #27628 Note mc-apply.py only works with CONFIG_EXPORT set to 1, as originally intended. I've tested this lots, apart from some minor formatting issues, which i'm not concerned about. This now seems to work as expected Note any extra defines that are not in the stock configs are appended to the end of Configuration.h Please give this a try. |
I'm curious - does I was under the impression that without the extended dump (ie 101), it would only do Of course, I could be greatly misunderstanding... |
yes 1 contains both set of data. |
So thinkyhead goes in the opposite direction, changes marlin so CONFIG_EXPORT 1 has Configuration file containers... |
I'm confused now - the PR for updating Does that mean that |
Im also confused is this fixed with updated documentation or not? |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
If
CONFIGURATION_EMBEDDING
is enabled, theM503 C
command will writeMC.ZIP
to the printers SD card with the compile time settings used.According to
docs/ConfigEmbedding.md
, the following should be used to then apply that config template back to the .h files:When attempting this, the script always returns:
Removing the main
try
/except
block, I get:When adding a debug to see what
key
contains, I see:As a result, no configuration files are modified and the
marlin_config.json
file cannot be folded back into the configuration.Bug Timeline
Likely a while.
Expected behavior
The script should restore config settings from
marlin_config.json
to the related .h files.Actual behavior
Error in output.
Steps to Reproduce
See main description.
Version of Marlin Firmware
bugfix-2.1.x
Printer model
No response
Electronics
No response
LCD/Controller
No response
Other add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Added example
marlin_config.json
as per output ofM503 C
.marlin_config.json
The text was updated successfully, but these errors were encountered: