Skip to content

Commit

Permalink
Set hybrid edit range to 999
Browse files Browse the repository at this point in the history
  • Loading branch information
vovodroid committed Oct 12, 2024
1 parent a6493e0 commit e94ddb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/feature/tmc_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class TMCStorage {

struct {
OPTCODE(HAS_STEALTHCHOP, bool stealthChop_enabled = false)
OPTCODE(HYBRID_THRESHOLD, uint8_t hybrid_thrs = 0)
OPTCODE(USE_SENSORLESS, int16_t homing_thrs = 0)
OPTCODE(HYBRID_THRESHOLD, uint16_t hybrid_thrs = 0)
OPTCODE(USE_SENSORLESS, int16_t homing_thrs = 0)
} stored;
};

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_tmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void menu_tmc_current() {

#if ENABLED(HYBRID_THRESHOLD)

#define TMC_EDIT_STORED_HYBRID_THRS(ST, STR) EDIT_ITEM_F(uint8, F(STR), &stepper##ST.stored.hybrid_thrs, 0, 255, []{ stepper##ST.refresh_hybrid_thrs(); });
#define TMC_EDIT_STORED_HYBRID_THRS(ST, STR) EDIT_ITEM_F(uint16_3, F(STR), &stepper##ST.stored.hybrid_thrs, 0, 999, []{ stepper##ST.refresh_hybrid_thrs(); });

void menu_tmc_hybrid_thrs() {
START_MENU();
Expand Down

0 comments on commit e94ddb8

Please sign in to comment.