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

PFW-1523 Add the S parameter to M79 #4479

Merged
merged 6 commits into from
Nov 12, 2023
Merged

PFW-1523 Add the S parameter to M79 #4479

merged 6 commits into from
Nov 12, 2023

Conversation

gudnimg
Copy link
Collaborator

@gudnimg gudnimg commented Nov 4, 2023

Continuation of #4460

Add the S parameter to M79. When the M79 timer is running, the S parameter will change the letters on "percentage done" text on the status screen to something customizable. The requirement was this be at most 2 characters and only activated when the M79 timer is running (when printing).

Another UI change is "USB" text is removed. Instead "HO" is shown which stands for "Host". "USB" wasn't really accurate when printing through a raspberry pi.

In the image below, "PL" stands for PrusaLink.

IMG_4117

I've tried to minimize memory usage and re-used the parsing from M862.3 P. I tested M862.3 P by disabling and enabling the MMU and in both cases it works fine.

TODO:

  • Double-check that unquoted_string() does not modify strchr_pointer.
  • Update RepRap G-code wiki

My plan is to re-use this function in M79
in a later commit. The firmware doesn't
have a dedicated parser like Marlin 2.1
so this is my attempt to not duplicate the parsing of a quoted string in G-codes

Change in memory (MK3S+ Multilang):
Flash: -50 bytes
SRAM: 0 bytes
Change in memory:
Flash: +112 bytes
SRAM: +3 bytes
@gudnimg gudnimg added this to the FW 3.14.0 milestone Nov 4, 2023
@gudnimg gudnimg requested a review from 3d-gussner November 4, 2023 20:54
Copy link

github-actions bot commented Nov 4, 2023

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 110 7 246072 5641 7880 2551
MK3_MULTILANG 106 7 245356 5650 8596 2542

@gudnimg gudnimg changed the title 🚧 PFW-1523 Add the S parameter to M79 PFW-1523 Add the S parameter to M79 Nov 5, 2023
@3d-gussner 3d-gussner added the Post release tasks open Tasks after release label Nov 6, 2023
Firmware/Marlin_main.cpp Outdated Show resolved Hide resolved
Firmware/util.h Outdated Show resolved Hide resolved
@gudnimg gudnimg requested a review from 3d-gussner November 7, 2023 07:28
Copy link
Collaborator

@3d-gussner 3d-gussner left a comment

Choose a reason for hiding this comment

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

Tested on MK404
Works as advertised 😉

@gudnimg gudnimg merged commit 1e6460c into prusa3d:MK3 Nov 12, 2023
5 checks passed
@gudnimg gudnimg deleted the PFW-1523-2 branch November 12, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Post release tasks open Tasks after release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants