@@ -38,7 +38,7 @@ bool AxisSettingsHandler::has_tmc_settings = false;
38
38
39
39
uint16_t AxisSettingsHandler::tmc_current;
40
40
bool AxisSettingsHandler::stealthchop;
41
- uint16_t AxisSettingsHandler::hybrid_threshold;
41
+ uint32_t AxisSettingsHandler::hybrid_threshold;
42
42
43
43
void AxisSettingsHandler::HandleNavigation (DGUS_VP_Variable &var, void *val_ptr) {
44
44
switch (uInt16Value (val_ptr)) {
@@ -79,7 +79,7 @@ void AxisSettingsHandler::HandleNavigation(DGUS_VP_Variable &var, void *val_ptr)
79
79
stealthchop = stepperX.get_stored_stealthChop ();
80
80
81
81
#if ENABLED(HYBRID_THRESHOLD)
82
- hybrid_threshold = static_cast <uint16_t >(stepperX.get_pwm_thrs ());
82
+ hybrid_threshold = static_cast <uint32_t >(stepperX.get_pwm_thrs ());
83
83
#endif
84
84
#endif
85
85
break ;
@@ -93,7 +93,7 @@ void AxisSettingsHandler::HandleNavigation(DGUS_VP_Variable &var, void *val_ptr)
93
93
stealthchop = stepperY.get_stored_stealthChop ();
94
94
95
95
#if ENABLED(HYBRID_THRESHOLD)
96
- hybrid_threshold = static_cast <uint16_t >(stepperY.get_pwm_thrs ());
96
+ hybrid_threshold = static_cast <uint32_t >(stepperY.get_pwm_thrs ());
97
97
#endif
98
98
#endif
99
99
break ;
@@ -107,7 +107,7 @@ void AxisSettingsHandler::HandleNavigation(DGUS_VP_Variable &var, void *val_ptr)
107
107
stealthchop = stepperZ.get_stored_stealthChop ();
108
108
109
109
#if ENABLED(HYBRID_THRESHOLD)
110
- hybrid_threshold = static_cast <uint16_t >(stepperZ.get_pwm_thrs ());
110
+ hybrid_threshold = static_cast <uint32_t >(stepperZ.get_pwm_thrs ());
111
111
#endif
112
112
#endif
113
113
break ;
@@ -121,7 +121,7 @@ void AxisSettingsHandler::HandleNavigation(DGUS_VP_Variable &var, void *val_ptr)
121
121
stealthchop = stepperE0.get_stored_stealthChop ();
122
122
123
123
#if ENABLED(HYBRID_THRESHOLD)
124
- hybrid_threshold = static_cast <uint16_t >(stepperE0.get_pwm_thrs ());
124
+ hybrid_threshold = static_cast <uint32_t >(stepperE0.get_pwm_thrs ());
125
125
#endif
126
126
#endif
127
127
break ;
0 commit comments