-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Eject Option To Filament Load Message #4644
Conversation
All values in bytes. Δ Delta to base
|
bc66635
to
70db3b4
Compare
I wonder if we can save memory by converting the following arguments into a single
|
The biggest cost +196 bytes is https://github.com/prusa3d/Prusa-Firmware/pull/4644/files#diff-5fbfdca43c192573e31d8e78d255c510fb6e213b118cf38173277ec2a2163880R2261-R2269 The last part only costs additional +32 bytes https://github.com/prusa3d/Prusa-Firmware/pull/4644/files#diff-5fbfdca43c192573e31d8e78d255c510fb6e213b118cf38173277ec2a2163880R3047-R3053 |
In that case I wonder if some of the function calls are being inlined. You can try adding |
I looked a bit into this flash usage, and I suspect this is due to the compiler not able to optimise the code like it could before. |
@gudnimg Any idea if that can be optimized? |
@sarusani Please rebase the PR and solve the conflicts. |
70db3b4
to
bd935db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gudnimg Do you think we can save any bytes here? If not please approve. |
Add a third option ("eject") to the "Filament extruding & with correct color?" message.
Closes #4643
The third_choice text was rendered incorrectly. (Only showed the first letter of the text because the position was hardcoded.)
I made sure the third_choice text will be offset to the left, but not overlap with the second_choice text.
This uses quite a lot of mem, any help in optimizing is appreciated 😸