-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Go to File Browser on Media Insert (option) #20151
Go to File Browser on Media Insert (option) #20151
Conversation
Added SD_AUTOOPEN_MENU to the Configuration_adv.h when plugged so you don't have to scroll all the way down for those using the old classic lcd screens when you plug an SD card and open Print from media. This was a feature originally part of the prusa firmware and I just added a few lines to do the same function. I'm not sure if it might conflict with other features yet.
added sanitycheck if PASSWORD_FEATURE is enabled. It's untested but I have a gut feeling problems might pop up with the PASSWORD_FEATURE
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.
Shouldn't BOTH
be used instead of ENABLED && ENABLED
?
It doesn't seem to work on Ender 3, SKR Mini E3 v1.2, CR10_STOCKDISPLAY. |
Hmm, I'm not sure how to test/investigate without the hardware on hand, I don't know how the CR10_STOCKDISPLAY handles sd insert or eject events but I will compiling a config on a friend's CR10S - though which still uses REPRAP_DISCOUNT_SMART_CONTROLLER, this MIGHT be a feature working only for the REPRAP_DISCOUNT_SMART_CONTROLLER or similar at the moment video for CR10S that is using REPRAP_DISCOUNT_SMART_CONTROLLER |
In the videos the SD cards are inserted in to the display directly? |
yeah |
|
@qwewer0, make sure you have set both of the following. The DETECT pin gets disabled if the second is not set.
|
Already had |
@qwewer0 were you building with one of the |
I used |
As it is today, no... but that feels wrong. It seems odd to have to specify NO_SD_HOST_DRIVE on a platform that already cannot provide it. |
It is a usability issue that everybody is getting wrong, including myself. From that perspective I consider it to be a bug. |
Hope I gave enough information on the issue to the problem between this PR and |
I think we need sanity check for that, to use only with LCD Controllers what support marlin ui. And I two question: anyone tested inside a deep menu screen, like some edit screen? And using Color UI? |
If I'm in an edit menu (e.g. probe offset):
When SD card is inserted, is there a way to have the "back" menu item in the printing menu to say where it would lead and not just the default Tested on: Ender 3, SKR Mini E3, CR10_STOCKDISPLAY |
Thanks for testing that! hmm, will have to study the edit menu function structures and will check if I can pass arguments to go back to the "last state" the edit menu was on |
@niccoreyes I don't think we really need a "go back" feature. When I asked for testing on deep menus, it's just to check if it would not put marlin in some wrong state. If it's working, I'm ok. We don't need make it harder and complex with a "go back" feature. I just like to check if it will work with Color UI too. Because Color UI is exactly the same as marlin menus, but for touch. |
As a quick patch, code can be added which checks whether the last item in the nav history is the main menu screen, and if it isn't, show "Back" instead of "Main". |
|
One more thing that I think would be good idea to add, is to not go to the status screen when SD card is removed, only go back one up or go to status screen when inside the media menu. |
Marlin/Marlin/src/lcd/menu/menu_media.cpp Line 120 in 41529b6
to
makes that on the status screen and main menu the back menu shows Not sure if this would work for that:
|
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
I have an Ender 3 with v4.2.7 board and the CR10 display with the wheel. A nice tweak would be when the media is inserted after being removed to update the main screen to remove the media removed message! I am looking a bit, should I submit this in some officially formatted way? |
it is possible, but I haven't gotten back to coding yet, you could submit a feature request if someone could pick up on it |
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Requirements
Description
Added SD_AUTOOPEN_MENU to the Configuration_adv.h when plugged so you don't have to scroll all the way down for those using the old classic lcd screens when you plug an SD card and open Print from media. This has only been tested on a REPRAP_DISCOUNT_SMART_CONTROLLER type of lcd.
video here
https://youtu.be/HLcYCQ0gGkA
Benefits
Better Quality of Life with SD card insert and ejection
Configurations
Configuration.h
REPRAP_DISCOUNT_SMART_CONTROLLER
Configuration_adv.h
Enable SDSUPPORT
and uncomment
SD_AUTOOPEN_MENU
Related Issues
This was a feature originally part of the prusa firmware and I just added a few lines to do the same function. I'm not sure if it might conflict with other features / lcds yet
EDIT: I don't think this should work with the SD card password feature.
I should make a sanity check soon.Done.