Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
2cc9774f
Commit
2cc9774f
authored
Apr 28, 2017
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Apply bltouch_menu
As proffered in #6252
parent
1a111180
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/language_en.h
+3
-0
3 additions, 0 deletions
Marlin/language_en.h
Marlin/ultralcd.cpp
+23
-6
23 additions, 6 deletions
Marlin/ultralcd.cpp
with
26 additions
and
6 deletions
Marlin/language_en.h
+
3
−
0
View file @
2cc9774f
...
...
@@ -408,6 +408,9 @@
#ifndef MSG_ZPROBE_OUT
#define MSG_ZPROBE_OUT _UxGT("Z probe out. bed")
#endif
#ifndef MSG_BLTOUCH
#define MSG_BLTOUCH _UxGT("BLTouch")
#endif
#ifndef MSG_BLTOUCH_SELFTEST
#define MSG_BLTOUCH_SELFTEST _UxGT("BLTouch Self-Test")
#endif
...
...
This diff is collapsed.
Click to expand it.
Marlin/ultralcd.cpp
+
23
−
6
View file @
2cc9774f
...
...
@@ -34,10 +34,6 @@
#include
"buzzer.h"
#endif
#if ENABLED(BLTOUCH)
#include
"endstops.h"
#endif
#if ENABLED(PRINTCOUNTER)
#include
"printcounter.h"
#include
"duration_t.h"
...
...
@@ -723,6 +719,28 @@ void kill_screen(const char* lcd_msg) {
#endif // MENU_ITEM_CASE_LIGHT
#if ENABLED(BLTOUCH)
/**
*
* "BLTouch" submenu
*
*/
static
void
bltouch_menu
()
{
START_MENU
();
//
// ^ Main
//
MENU_BACK
(
MSG_MAIN
);
MENU_ITEM
(
gcode
,
MSG_BLTOUCH_RESET
,
PSTR
(
"M280 P"
STRINGIFY
(
Z_ENDSTOP_SERVO_NR
)
" S"
STRINGIFY
(
BLTOUCH_RESET
)));
MENU_ITEM
(
gcode
,
MSG_BLTOUCH_SELFTEST
,
PSTR
(
"M280 P"
STRINGIFY
(
Z_ENDSTOP_SERVO_NR
)
" S"
STRINGIFY
(
BLTOUCH_SELFTEST
)));
MENU_ITEM
(
gcode
,
MSG_BLTOUCH_DEPLOY
,
PSTR
(
"M280 P"
STRINGIFY
(
Z_ENDSTOP_SERVO_NR
)
" S"
STRINGIFY
(
BLTOUCH_DEPLOY
)));
MENU_ITEM
(
gcode
,
MSG_BLTOUCH_STOW
,
PSTR
(
"M280 P"
STRINGIFY
(
Z_ENDSTOP_SERVO_NR
)
" S"
STRINGIFY
(
BLTOUCH_STOW
)));
END_MENU
();
}
#endif // BLTOUCH
#if ENABLED(LCD_PROGRESS_BAR_TEST)
static
void
progress_bar_test
()
{
...
...
@@ -792,8 +810,7 @@ void kill_screen(const char* lcd_msg) {
#endif
#if ENABLED(BLTOUCH)
if
(
!
endstops
.
z_probe_enabled
&&
TEST_BLTOUCH
())
MENU_ITEM
(
gcode
,
MSG_BLTOUCH_RESET
,
PSTR
(
"M280 P"
STRINGIFY
(
Z_ENDSTOP_SERVO_NR
)
" S"
STRINGIFY
(
BLTOUCH_RESET
)));
MENU_ITEM
(
submenu
,
MSG_BLTOUCH
,
bltouch_menu
);
#endif
if
(
planner
.
movesplanned
()
||
IS_SD_PRINTING
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment