|
@@ -32,7 +32,7 @@
|
32
|
32
|
#include "../../module/stepper/indirection.h"
|
33
|
33
|
#include "../../feature/tmc_util.h"
|
34
|
34
|
|
35
|
|
-#define TMC_EDIT_STORED_I_RMS(ST,MSG) EDIT_ITEM_P(uint16_4, PSTR(MSG), &stepper##ST.val_mA, 100, 3000, []{ stepper##ST.refresh_stepper_current(); })
|
|
35
|
+#define TMC_EDIT_STORED_I_RMS(ST,STR) EDIT_ITEM_P(uint16_4, PSTR(STR), &stepper##ST.val_mA, 100, 3000, []{ stepper##ST.refresh_stepper_current(); })
|
36
|
36
|
|
37
|
37
|
void menu_tmc_current() {
|
38
|
38
|
START_MENU();
|
|
@@ -90,7 +90,7 @@ void menu_tmc_current() {
|
90
|
90
|
|
91
|
91
|
#if ENABLED(HYBRID_THRESHOLD)
|
92
|
92
|
|
93
|
|
- #define TMC_EDIT_STORED_HYBRID_THRS(ST, MSG) EDIT_ITEM_P(uint8, PSTR(MSG), &stepper##ST.stored.hybrid_thrs, 0, 255, []{ stepper##ST.refresh_hybrid_thrs(); });
|
|
93
|
+ #define TMC_EDIT_STORED_HYBRID_THRS(ST, STR) EDIT_ITEM_P(uint8, PSTR(STR), &stepper##ST.stored.hybrid_thrs, 0, 255, []{ stepper##ST.refresh_hybrid_thrs(); });
|
94
|
94
|
|
95
|
95
|
void menu_tmc_hybrid_thrs() {
|
96
|
96
|
START_MENU();
|
|
@@ -150,7 +150,7 @@ void menu_tmc_current() {
|
150
|
150
|
|
151
|
151
|
#if ENABLED(SENSORLESS_HOMING)
|
152
|
152
|
|
153
|
|
- #define TMC_EDIT_STORED_SGT(ST) EDIT_ITEM_P(int4, PSTR(MSG_##ST), &stepper##ST.stored.homing_thrs, stepper##ST.sgt_min, stepper##ST.sgt_max, []{ stepper##ST.refresh_homing_thrs(); });
|
|
153
|
+ #define TMC_EDIT_STORED_SGT(ST) EDIT_ITEM_P(int4, PSTR(STR_##ST), &stepper##ST.stored.homing_thrs, stepper##ST.sgt_min, stepper##ST.sgt_max, []{ stepper##ST.refresh_homing_thrs(); });
|
154
|
154
|
|
155
|
155
|
void menu_tmc_homing_thrs() {
|
156
|
156
|
START_MENU();
|
|
@@ -174,7 +174,7 @@ void menu_tmc_current() {
|
174
|
174
|
|
175
|
175
|
#if HAS_STEALTHCHOP
|
176
|
176
|
|
177
|
|
- #define TMC_EDIT_STEP_MODE(ST, MSG) EDIT_ITEM_P(bool, PSTR(MSG), &stepper##ST.stored.stealthChop_enabled, []{ stepper##ST.refresh_stepping_mode(); })
|
|
177
|
+ #define TMC_EDIT_STEP_MODE(ST, STR) EDIT_ITEM_P(bool, PSTR(STR), &stepper##ST.stored.stealthChop_enabled, []{ stepper##ST.refresh_stepping_mode(); })
|
178
|
178
|
|
179
|
179
|
void menu_tmc_step_mode() {
|
180
|
180
|
START_MENU();
|