UltraLCD enhancements (lower fan resolution, backlash menu) (#13519)
This commit is contained in:
committed by
Scott Lahteine
parent
de0f35f2d9
commit
5679fae11e
@ -82,7 +82,8 @@
|
||||
#include "ui_api.h"
|
||||
|
||||
#if ENABLED(BACKLASH_GCODE)
|
||||
extern float backlash_distance_mm[XYZ], backlash_correction;
|
||||
extern float backlash_distance_mm[XYZ];
|
||||
extern uint8_t backlash_correction;
|
||||
#ifdef BACKLASH_SMOOTHING_MM
|
||||
extern float backlash_smoothing_mm;
|
||||
#endif
|
||||
@ -686,8 +687,8 @@ namespace ExtUI {
|
||||
void setAxisBacklash_mm(const float value, const axis_t axis)
|
||||
{ backlash_distance_mm[axis] = clamp(value,0,5); }
|
||||
|
||||
float getBacklashCorrection_percent() { return backlash_correction * 100; }
|
||||
void setBacklashCorrection_percent(const float value) { backlash_correction = clamp(value, 0, 100) / 100.0f; }
|
||||
float getBacklashCorrection_percent() { return ui8_to_percent(backlash_correction); }
|
||||
void setBacklashCorrection_percent(const float value) { backlash_correction = map(clamp(value, 0, 100), 0, 100, 0, 255); }
|
||||
|
||||
#ifdef BACKLASH_SMOOTHING_MM
|
||||
float getBacklashSmoothing_mm() { return backlash_smoothing_mm; }
|
||||
|
Reference in New Issue
Block a user