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

Update Prusa MMU3 #27719

Draft
wants to merge 11 commits into
base: bugfix-2.1.x
Choose a base branch
from

Conversation

classicrocker883
Copy link
Contributor

@classicrocker883 classicrocker883 commented Mar 3, 2025

Description

Basically, since this was originally MMU2 stuff, I've updated to the correct MMU3 stuff

  • The old .yaml file no worky. - src\feature\mmu3\mmu_hw\check-pce.sh
  • Added a new error code that wasnt there before
  • Updated error MSG_ | TITLE_, and DESC_ - language_en.h

Note

Originally, this code was taken from prusa3d/Prusa-Firmware/tree/MK3/Firmware/mmu2 + files included from the previous Firmware directory, updated last by #26635 as to work with MMU3.
However, this repo has support for MMU2S
The two share a common firmware - in their Releases, one asset is MMU2S_MMU3_FW3.0.3+896.hex
and from the README file:

# Prusa-Firmware-MMU
The currently supported models are:

- Original Prusa MMU3
- Original Prusa MMU2S

Maybe @eoyilmaz or @thinkyhead or someone else can review this,
but perhaps HAS_PRUSA_MMU2S is closer related to HAS_PRUSA_MMU3 - I mean according to @prusa3d thats what it seems like


Furthermore

I am unsure of a few things, such as the ButtonOperations
According to prusa3d/Prusa-Error-Codes, there has been some removed from enum class ButtonOperations in button_operations.h . Things like Skip was added, and MoreInfo removed. So I'm not so sure how to deal with this in the remaining files. I left MoreInfo, because some things do use it, I just dont know how or if it (still) works for the printer/MMU side, or was meant only for MMU2
Also, in the updated mmu-error-codes.yaml, it seems button options like Tune and such were dropped so I'm wondering how that works on the Prusa's side.

Requirements

  • MarlinUI
  • Prusa MMU3

Benefits

  • Update/fix non-working URL
  • Add/rename error codes to work with updated MMU3 firmware

Configurations

Related Issues

Just wanted to point this out

not sure if this needs change, but
apparently a couple things have been declared but are unused:

  • two_choices
  • button_op_middle
Marlin\src\feature\mmu3\mmu3_reporting.cpp: In function 'void MMU3::ReportErrorHookStaticRender(uint8_t)':
Marlin\src\feature\mmu3\mmu3_reporting.cpp:299:12: warning: variable 'two_choices' set but not used [-Wunused-but-set-variable]
       bool two_choices = false;
            ^~~~~~~~~~~
Marlin\src\feature\mmu3\mmu3_reporting.cpp:304:21: warning: unused variable 'button_op_middle' [-Wunused-variable]
                     button_op_middle = BUTTON_OP_MIDDLE(button_operation);
                     ^~~~~~~~~~~~~~~~

@classicrocker883 classicrocker883 marked this pull request as draft March 15, 2025 13:20
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 4354891 to efa1758 Compare March 28, 2025 01:57
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.

1 participant