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-1525 Add Set Readymenu #4429

Merged
merged 10 commits into from
Nov 22, 2023

Conversation

3d-gussner
Copy link
Collaborator

@3d-gussner 3d-gussner commented Oct 5, 2023

Translation in 2nd part to prevent conflicts with other PRs

Menu Set Ready
Shown

  • After reboot or start
  • After finished print
  • After print stop

Hidden

  • While SD printing
  • While USB printing

When menu selected a serial message // action:printer_ready is sent and Menu is hidden ✔️

  • Set Ready via gcode M72 S[1|0] from PrusaConnect or PrusaLink

  • Update RepRap Wiki M72

@3d-gussner 3d-gussner added this to the FW 3.14.0 milestone Oct 5, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 304 1 246758 5656 7194 2536
MK3_MULTILANG 306 1 246040 5663 7912 2529

@3d-gussner 3d-gussner added the Prusa-Link_Connect Prusa Link and Prusa Connect related label Oct 5, 2023
Firmware/cmdqueue.cpp Outdated Show resolved Hide resolved
Firmware/ultralcd.cpp Outdated Show resolved Hide resolved
Firmware/Marlin.h Outdated Show resolved Hide resolved
Firmware/Marlin_main.cpp Outdated Show resolved Hide resolved
Firmware/Marlin_main.cpp Outdated Show resolved Hide resolved
@3d-gussner 3d-gussner force-pushed the MK3_PFW-1525_Printer_Ready branch 2 times, most recently from 3eafd93 to c03b011 Compare October 25, 2023 15:13
@3d-gussner
Copy link
Collaborator Author

@DRracer @gudnimg Please review again. I don't know if the TOGGLE menu is a good idea as in Buddy firmware it is one menu but that is grayed out or not

Firmware/Marlin.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@DRracer DRracer left a comment

Choose a reason for hiding this comment

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

  • please don't add new extern variables
  • I'm not sure about using M862.7 for querying the state, I'd advise using M72 Q for reporting the state

other than that, this PR looks ok

@gudnimg gudnimg linked an issue Oct 28, 2023 that may be closed by this pull request
Firmware/ultralcd.cpp Outdated Show resolved Hide resolved
Firmware/cmdqueue.cpp Outdated Show resolved Hide resolved
Firmware/ultralcd.cpp Outdated Show resolved Hide resolved
@3d-gussner
Copy link
Collaborator Author

@gudnimg please review again

Firmware/ultralcd.cpp Outdated Show resolved Hide resolved
Firmware/ultralcd.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@gudnimg gudnimg left a comment

Choose a reason for hiding this comment

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

I find the new print states a bit questionable since they are not used everywhere for example card.sdprinting is still being used.

But I will approve the PR continue working on this with new PRs.

@gudnimg
Copy link
Collaborator

gudnimg commented Nov 19, 2023

@3d-gussner Looking at the translation PR, it seems M862.7 is missing? Not sure if that was intentional.

@3d-gussner
Copy link
Collaborator Author

The state can be checked with M72 without parameters.

@@ -5191,7 +5206,13 @@ static void lcd_main_menu()
} else if (!Stopped) {
MENU_ITEM_SUBMENU_P(_i("Preheat"), lcd_preheat_menu);////MSG_PREHEAT c=18
}

if (GetPrinterState() < PrinterState::IsSDPrinting && M79_timer_get_status()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Based on this statement, the order / numerical values of PrinterState members is important. A big warning should be added to the structure so that no one tries to reorder the items arbitrarily.

Copy link
Collaborator

@DRracer DRracer left a comment

Choose a reason for hiding this comment

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

just document the importance of PrinterState items' ordering, otherwise ok

Add documentation
Whitespace
@3d-gussner 3d-gussner added the Post release tasks open Tasks after release label Nov 22, 2023
@3d-gussner 3d-gussner merged commit 8615a8d into prusa3d:MK3 Nov 22, 2023
5 checks passed
@3d-gussner 3d-gussner deleted the MK3_PFW-1525_Printer_Ready branch November 22, 2023 07:53
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 Prusa-Link_Connect Prusa Link and Prusa Connect related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Set Ready" Prusa Connect button in menu of MK3
3 participants