-
-
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
Case light menu (3rd attempt) #5255
Conversation
Github helpfully provides great documentation. And Google provides a means to find more. The time spent struggling could be the time spent learning. Just as time spent trying to avoid effort now could be time spent learning to reduce effort forever. I personally recommend http://learngitbranching.js.org/ for a start. |
MENU_ITEM(gcode, MSG_LIGHTS_ON, PSTR("M355 S1")); | ||
else | ||
MENU_ITEM(gcode, MSG_LIGHTS_OFF, PSTR("M355 S0")); | ||
#endif |
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.
So close! Add a blank line above and restore the blank line after, and we're good!
Like this? |
What's wrong here, do I have to change anything before this gets merged? |
Maybe removing unnecessary spaces and squash are needed?
Result: https://github.com/esenapaj/Marlin/tree/CaseLightMenu |
@esenapaj I think i got i right now finally. Many thanks for the great guideline. I guess i wouldn't have made it without your advice. It's so easy...if you know how. |
I'm glad that it works, but I'm sorry but it looks like that it needs fixing. If you are thinking that you aren't sure how to fix it, there is also a way to copy my commit.
|
Ay, i think i'm on my way messing it all up completely. But i won't give up. I only have to drive home from work :) |
@esenapaj I really like all these screen shots... and appreciate them so very much... Could i ask a huge favor... write them up in a guide on how to use github with marlin and your local fork - it would be a huge help for many i think - and i think @thinkyhead or other could have them in the main wiki for everybody to find easily... Thanks |
@esenapaj Not completely sure, but i think i've got it now. fingerscrossed |
Puh, this was a tough one. |
Follow-up the PR #5255 (Case light menu (3rd attempt))
Fix for the PR #5255 (Case light menu (3rd attempt))
Github seems to be for Pros only :)
Referenced to this #5194 (and this #5243 because i don't understand github) i implemented a (definable) Menu entry on the main screen to toggle the case lights. I had this long before the #define CASE_LIGHT_PIN 4 and always found it extremely useful to be able to switch off the case light from by LCD. The host is shut down most of the time, so if #define CASE_LIGHT_DEFAULT_ON is enabled there is no way to switch of the case light if the printer is printing for 20 hours.