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
ec1b86d9
Commit
ec1b86d9
authored
Feb 26, 2020
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Serial strings in macros
parent
cf597e2b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/lcd/menu/menu_tmc.cpp
+4
-4
4 additions, 4 deletions
Marlin/src/lcd/menu/menu_tmc.cpp
with
4 additions
and
4 deletions
Marlin/src/lcd/menu/menu_tmc.cpp
+
4
−
4
View file @
ec1b86d9
...
@@ -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,
MSG
) EDIT_ITEM_P(uint16_4, PSTR(
MSG
), &stepper##ST.val_mA, 100, 3000, []{ stepper##ST.refresh_stepper_current(); })
#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(); })
void
menu_tmc_current
()
{
void
menu_tmc_current
()
{
START_MENU
();
START_MENU
();
...
@@ -90,7 +90,7 @@ void menu_tmc_current() {
...
@@ -90,7 +90,7 @@ void menu_tmc_current() {
#if ENABLED(HYBRID_THRESHOLD)
#if ENABLED(HYBRID_THRESHOLD)
#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(); });
#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(); });
void
menu_tmc_hybrid_thrs
()
{
void
menu_tmc_hybrid_thrs
()
{
START_MENU
();
START_MENU
();
...
@@ -150,7 +150,7 @@ void menu_tmc_current() {
...
@@ -150,7 +150,7 @@ void menu_tmc_current() {
#if ENABLED(SENSORLESS_HOMING)
#if ENABLED(SENSORLESS_HOMING)
#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(); });
#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(); });
void
menu_tmc_homing_thrs
()
{
void
menu_tmc_homing_thrs
()
{
START_MENU
();
START_MENU
();
...
@@ -174,7 +174,7 @@ void menu_tmc_current() {
...
@@ -174,7 +174,7 @@ void menu_tmc_current() {
#if HAS_STEALTHCHOP
#if HAS_STEALTHCHOP
#define TMC_EDIT_STEP_MODE(ST,
MSG
) EDIT_ITEM_P(bool, PSTR(
MSG
), &stepper##ST.stored.stealthChop_enabled, []{ stepper##ST.refresh_stepping_mode(); })
#define TMC_EDIT_STEP_MODE(ST,
STR
) EDIT_ITEM_P(bool, PSTR(
STR
), &stepper##ST.stored.stealthChop_enabled, []{ stepper##ST.refresh_stepping_mode(); })
void
menu_tmc_step_mode
()
{
void
menu_tmc_step_mode
()
{
START_MENU
();
START_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