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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
ca7f6ff2
Commit
ca7f6ff2
authored
5 years ago
by
Marcio Teixeira
Committed by
Scott Lahteine
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix MSG_En messages for consistency (#13788)
parent
6ff81a33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/src/core/language.h
+0
-1
0 additions, 1 deletion
Marlin/src/core/language.h
Marlin/src/lcd/menu/menu_tmc.cpp
+42
-42
42 additions, 42 deletions
Marlin/src/lcd/menu/menu_tmc.cpp
with
42 additions
and
43 deletions
Marlin/src/core/language.h
+
0
−
1
View file @
ca7f6ff2
...
@@ -344,7 +344,6 @@
...
@@ -344,7 +344,6 @@
#define MSG_LCD_N3 " 4"
#define MSG_LCD_N3 " 4"
#define MSG_LCD_N4 " 5"
#define MSG_LCD_N4 " 5"
#define MSG_LCD_N5 " 6"
#define MSG_LCD_N5 " 6"
#define MSG_E0 "E0"
#define MSG_E1 "E1"
#define MSG_E1 "E1"
#define MSG_E2 "E2"
#define MSG_E2 "E2"
#define MSG_E3 "E3"
#define MSG_E3 "E3"
...
...
This diff is collapsed.
Click to expand it.
Marlin/src/lcd/menu/menu_tmc.cpp
+
42
−
42
View file @
ca7f6ff2
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include
"../../module/stepper_indirection.h"
#include
"../../module/stepper_indirection.h"
#include
"../../feature/tmc_util.h"
#include
"../../feature/tmc_util.h"
#define TMC_EDIT_STORED_I_RMS(ST) MENU_ITEM_EDIT_CALLBACK(uint16_4, MSG
_##ST
, &stepper##ST.val_mA, 100, 3000, refresh_stepper_current_##ST)
#define TMC_EDIT_STORED_I_RMS(ST
,MSG
) MENU_ITEM_EDIT_CALLBACK(uint16_4, MSG, &stepper##ST.val_mA, 100, 3000, refresh_stepper_current_##ST)
#if AXIS_IS_TMC(X)
#if AXIS_IS_TMC(X)
void
refresh_stepper_current_X
()
{
stepperX
.
refresh_stepper_current
();
}
void
refresh_stepper_current_X
()
{
stepperX
.
refresh_stepper_current
();
}
...
@@ -78,50 +78,50 @@ void menu_tmc_current() {
...
@@ -78,50 +78,50 @@ void menu_tmc_current() {
START_MENU
();
START_MENU
();
MENU_BACK
(
MSG_TMC_DRIVERS
);
MENU_BACK
(
MSG_TMC_DRIVERS
);
#if AXIS_IS_TMC(X)
#if AXIS_IS_TMC(X)
TMC_EDIT_STORED_I_RMS
(
X
);
TMC_EDIT_STORED_I_RMS
(
X
,
MSG_X
);
#endif
#endif
#if AXIS_IS_TMC(Y)
#if AXIS_IS_TMC(Y)
TMC_EDIT_STORED_I_RMS
(
Y
);
TMC_EDIT_STORED_I_RMS
(
Y
,
MSG_Y
);
#endif
#endif
#if AXIS_IS_TMC(Z)
#if AXIS_IS_TMC(Z)
TMC_EDIT_STORED_I_RMS
(
Z
);
TMC_EDIT_STORED_I_RMS
(
Z
,
MSG_Z
);
#endif
#endif
#if AXIS_IS_TMC(X2)
#if AXIS_IS_TMC(X2)
TMC_EDIT_STORED_I_RMS
(
X2
);
TMC_EDIT_STORED_I_RMS
(
X2
,
MSG_X2
);
#endif
#endif
#if AXIS_IS_TMC(Y2)
#if AXIS_IS_TMC(Y2)
TMC_EDIT_STORED_I_RMS
(
Y2
);
TMC_EDIT_STORED_I_RMS
(
Y2
,
MSG_Y2
);
#endif
#endif
#if AXIS_IS_TMC(Z2)
#if AXIS_IS_TMC(Z2)
TMC_EDIT_STORED_I_RMS
(
Z2
);
TMC_EDIT_STORED_I_RMS
(
Z2
,
MSG_Z2
);
#endif
#endif
#if AXIS_IS_TMC(Z3)
#if AXIS_IS_TMC(Z3)
TMC_EDIT_STORED_I_RMS
(
Z3
);
TMC_EDIT_STORED_I_RMS
(
Z3
,
MSG_Z3
);
#endif
#endif
#if AXIS_IS_TMC(E0)
#if AXIS_IS_TMC(E0)
TMC_EDIT_STORED_I_RMS
(
E0
);
TMC_EDIT_STORED_I_RMS
(
E0
,
MSG_E1
);
#endif
#endif
#if AXIS_IS_TMC(E1)
#if AXIS_IS_TMC(E1)
TMC_EDIT_STORED_I_RMS
(
E1
);
TMC_EDIT_STORED_I_RMS
(
E1
,
MSG_E2
);
#endif
#endif
#if AXIS_IS_TMC(E2)
#if AXIS_IS_TMC(E2)
TMC_EDIT_STORED_I_RMS
(
E2
);
TMC_EDIT_STORED_I_RMS
(
E2
,
MSG_E3
);
#endif
#endif
#if AXIS_IS_TMC(E3)
#if AXIS_IS_TMC(E3)
TMC_EDIT_STORED_I_RMS
(
E3
);
TMC_EDIT_STORED_I_RMS
(
E3
,
MSG_E4
);
#endif
#endif
#if AXIS_IS_TMC(E4)
#if AXIS_IS_TMC(E4)
TMC_EDIT_STORED_I_RMS
(
E4
);
TMC_EDIT_STORED_I_RMS
(
E4
,
MSG_E5
);
#endif
#endif
#if AXIS_IS_TMC(E5)
#if AXIS_IS_TMC(E5)
TMC_EDIT_STORED_I_RMS
(
E5
);
TMC_EDIT_STORED_I_RMS
(
E5
,
MSG_E6
);
#endif
#endif
END_MENU
();
END_MENU
();
}
}
#if ENABLED(HYBRID_THRESHOLD)
#if ENABLED(HYBRID_THRESHOLD)
#define TMC_EDIT_STORED_HYBRID_THRS(ST) MENU_ITEM_EDIT_CALLBACK(uint8, MSG
_##ST
, &stepper##ST.stored.hybrid_thrs, 0, 255, refresh_hybrid_thrs_##ST);
#define TMC_EDIT_STORED_HYBRID_THRS(ST
, MSG
) MENU_ITEM_EDIT_CALLBACK(uint8, MSG, &stepper##ST.stored.hybrid_thrs, 0, 255, refresh_hybrid_thrs_##ST);
#if AXIS_HAS_STEALTHCHOP(X)
#if AXIS_HAS_STEALTHCHOP(X)
void
refresh_hybrid_thrs_X
()
{
stepperX
.
refresh_hybrid_thrs
(
planner
.
settings
.
axis_steps_per_mm
[
X_AXIS
]);
}
void
refresh_hybrid_thrs_X
()
{
stepperX
.
refresh_hybrid_thrs
(
planner
.
settings
.
axis_steps_per_mm
[
X_AXIS
]);
}
...
@@ -167,43 +167,43 @@ void menu_tmc_current() {
...
@@ -167,43 +167,43 @@ void menu_tmc_current() {
START_MENU
();
START_MENU
();
MENU_BACK
(
MSG_TMC_DRIVERS
);
MENU_BACK
(
MSG_TMC_DRIVERS
);
#if AXIS_HAS_STEALTHCHOP(X)
#if AXIS_HAS_STEALTHCHOP(X)
TMC_EDIT_STORED_HYBRID_THRS
(
X
);
TMC_EDIT_STORED_HYBRID_THRS
(
X
,
MSG_X
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Y)
#if AXIS_HAS_STEALTHCHOP(Y)
TMC_EDIT_STORED_HYBRID_THRS
(
Y
);
TMC_EDIT_STORED_HYBRID_THRS
(
Y
,
MSG_Y
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z)
#if AXIS_HAS_STEALTHCHOP(Z)
TMC_EDIT_STORED_HYBRID_THRS
(
Z
);
TMC_EDIT_STORED_HYBRID_THRS
(
Z
,
MSG_Z
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(X2)
#if AXIS_HAS_STEALTHCHOP(X2)
TMC_EDIT_STORED_HYBRID_THRS
(
X2
);
TMC_EDIT_STORED_HYBRID_THRS
(
X2
,
MSG_X2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Y2)
#if AXIS_HAS_STEALTHCHOP(Y2)
TMC_EDIT_STORED_HYBRID_THRS
(
Y2
);
TMC_EDIT_STORED_HYBRID_THRS
(
Y2
,
MSG_Y2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z2)
#if AXIS_HAS_STEALTHCHOP(Z2)
TMC_EDIT_STORED_HYBRID_THRS
(
Z2
);
TMC_EDIT_STORED_HYBRID_THRS
(
Z2
,
MSG_Z2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z3)
#if AXIS_HAS_STEALTHCHOP(Z3)
TMC_EDIT_STORED_HYBRID_THRS
(
Z3
);
TMC_EDIT_STORED_HYBRID_THRS
(
Z3
,
MSG_Z3
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E0)
#if AXIS_HAS_STEALTHCHOP(E0)
TMC_EDIT_STORED_HYBRID_THRS
(
E0
);
TMC_EDIT_STORED_HYBRID_THRS
(
E0
,
MSG_E1
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E1)
#if AXIS_HAS_STEALTHCHOP(E1)
TMC_EDIT_STORED_HYBRID_THRS
(
E1
);
TMC_EDIT_STORED_HYBRID_THRS
(
E1
,
MSG_E2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E2)
#if AXIS_HAS_STEALTHCHOP(E2)
TMC_EDIT_STORED_HYBRID_THRS
(
E2
);
TMC_EDIT_STORED_HYBRID_THRS
(
E2
,
MSG_E3
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E3)
#if AXIS_HAS_STEALTHCHOP(E3)
TMC_EDIT_STORED_HYBRID_THRS
(
E3
);
TMC_EDIT_STORED_HYBRID_THRS
(
E3
,
MSG_E4
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E4)
#if AXIS_HAS_STEALTHCHOP(E4)
TMC_EDIT_STORED_HYBRID_THRS
(
E4
);
TMC_EDIT_STORED_HYBRID_THRS
(
E4
,
MSG_E5
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E5)
#if AXIS_HAS_STEALTHCHOP(E5)
TMC_EDIT_STORED_HYBRID_THRS
(
E5
);
TMC_EDIT_STORED_HYBRID_THRS
(
E5
,
MSG_E6
);
#endif
#endif
END_MENU
();
END_MENU
();
}
}
...
@@ -243,7 +243,7 @@ void menu_tmc_current() {
...
@@ -243,7 +243,7 @@ void menu_tmc_current() {
#if HAS_STEALTHCHOP
#if HAS_STEALTHCHOP
#define TMC_EDIT_STEP_MODE(ST) MENU_ITEM_EDIT_CALLBACK(bool, MSG
_##ST
, &stepper##ST.stored.stealthChop_enabled, refresh_stepping_mode_##ST)
#define TMC_EDIT_STEP_MODE(ST
, MSG
) MENU_ITEM_EDIT_CALLBACK(bool, MSG, &stepper##ST.stored.stealthChop_enabled, refresh_stepping_mode_##ST)
#if AXIS_HAS_STEALTHCHOP(X)
#if AXIS_HAS_STEALTHCHOP(X)
void
refresh_stepping_mode_X
()
{
stepperX
.
refresh_stepping_mode
();
}
void
refresh_stepping_mode_X
()
{
stepperX
.
refresh_stepping_mode
();
}
...
@@ -290,43 +290,43 @@ void menu_tmc_current() {
...
@@ -290,43 +290,43 @@ void menu_tmc_current() {
STATIC_ITEM
(
MSG_TMC_STEALTH_ENABLED
);
STATIC_ITEM
(
MSG_TMC_STEALTH_ENABLED
);
MENU_BACK
(
MSG_TMC_DRIVERS
);
MENU_BACK
(
MSG_TMC_DRIVERS
);
#if AXIS_HAS_STEALTHCHOP(X)
#if AXIS_HAS_STEALTHCHOP(X)
TMC_EDIT_STEP_MODE
(
X
);
TMC_EDIT_STEP_MODE
(
X
,
MSG_X
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Y)
#if AXIS_HAS_STEALTHCHOP(Y)
TMC_EDIT_STEP_MODE
(
Y
);
TMC_EDIT_STEP_MODE
(
Y
,
MSG_Y
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z)
#if AXIS_HAS_STEALTHCHOP(Z)
TMC_EDIT_STEP_MODE
(
Z
);
TMC_EDIT_STEP_MODE
(
Z
,
MSG_Z
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(X2)
#if AXIS_HAS_STEALTHCHOP(X2)
TMC_EDIT_STEP_MODE
(
X2
);
TMC_EDIT_STEP_MODE
(
X2
,
MSG_X2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Y2)
#if AXIS_HAS_STEALTHCHOP(Y2)
TMC_EDIT_STEP_MODE
(
Y2
);
TMC_EDIT_STEP_MODE
(
Y2
,
MSG_Y2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z2)
#if AXIS_HAS_STEALTHCHOP(Z2)
TMC_EDIT_STEP_MODE
(
Z2
);
TMC_EDIT_STEP_MODE
(
Z2
,
MSG_Z2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(Z3)
#if AXIS_HAS_STEALTHCHOP(Z3)
TMC_EDIT_STEP_MODE
(
Z3
);
TMC_EDIT_STEP_MODE
(
Z3
,
MSG_Z3
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E0)
#if AXIS_HAS_STEALTHCHOP(E0)
TMC_EDIT_STEP_MODE
(
E0
);
TMC_EDIT_STEP_MODE
(
E0
,
MSG_E1
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E1)
#if AXIS_HAS_STEALTHCHOP(E1)
TMC_EDIT_STEP_MODE
(
E1
);
TMC_EDIT_STEP_MODE
(
E1
,
MSG_E2
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E2)
#if AXIS_HAS_STEALTHCHOP(E2)
TMC_EDIT_STEP_MODE
(
E2
);
TMC_EDIT_STEP_MODE
(
E2
,
MSG_E3
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E3)
#if AXIS_HAS_STEALTHCHOP(E3)
TMC_EDIT_STEP_MODE
(
E3
);
TMC_EDIT_STEP_MODE
(
E3
,
MSG_E4
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E4)
#if AXIS_HAS_STEALTHCHOP(E4)
TMC_EDIT_STEP_MODE
(
E4
);
TMC_EDIT_STEP_MODE
(
E4
,
MSG_E5
);
#endif
#endif
#if AXIS_HAS_STEALTHCHOP(E5)
#if AXIS_HAS_STEALTHCHOP(E5)
TMC_EDIT_STEP_MODE
(
E5
);
TMC_EDIT_STEP_MODE
(
E5
,
MSG_E6
);
#endif
#endif
END_MENU
();
END_MENU
();
}
}
...
...
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