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

Refactor SD detect handler #17380

Merged

Conversation

thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Apr 2, 2020

Problem: SD card detection is handled in the LCD or ExtUI update which means isolated SD card readers don't get auto-mounted unless there is a controller. Also, if both UltraLCD and ExtUI LCD controllers are connected, both of them do SD detection and this may be potentially conflicting.

Solution: This PR moves SD card detection to the CardReader class and UI response to SD events to a separate MarlinUI method (instead of doing this in MarlinUI::update).

thinkyhead and others added 2 commits April 2, 2020 01:31
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
@thinkyhead thinkyhead merged commit 65f6a37 into MarlinFirmware:bugfix-2.0.x Apr 4, 2020
@thinkyhead thinkyhead deleted the bf2_refactor_sd_detect_PR branch April 4, 2020 05:08
@tpruvot
Copy link
Contributor

tpruvot commented Apr 4, 2020

That remove the "Printer Ready" message on the LCD, replaced by "Media inserted"

@thinkyhead
Copy link
Member Author

Thanks! I didn't notice due to testing auto0.g.

@thinkyhead
Copy link
Member Author

P.S. What kind of LCD? (ExtUI is affected differently from HD44780.)

@thinkyhead
Copy link
Member Author

I've patched Marlin so ExtUI won't show the "inserted" message when the status changes from 'unknown' to mounted. That should do the trick.

DerAndere1 pushed a commit to DerAndere1/Marlin that referenced this pull request Apr 9, 2020
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
ghost pushed a commit to bfhobbes/Marlin that referenced this pull request Apr 15, 2020
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
mathom pushed a commit to mathom/Marlin that referenced this pull request Apr 17, 2020
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
njibhu pushed a commit to njibhu/Marlin that referenced this pull request Aug 24, 2020
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
Co-Authored-By: Eric Ptak <trouch@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants