Skip to content

Commit a7669f4

Browse files
plampixthinkyhead
authored andcommitted
✨ EDITABLE_STEPS_PER_UNIT (MarlinFirmware#26618)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent 49e4134 commit a7669f4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Marlin/src/inc/Warnings.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,3 +833,10 @@
833833
#if ALL(FT_MOTION, I2S_STEPPER_STREAM)
834834
#warning "FT_MOTION has not been tested with I2S_STEPPER_STREAM."
835835
#endif
836+
837+
/**
838+
* User doesn't have or disabled G92?
839+
*/
840+
#if DISABLED(EDITABLE_STEPS_PER_UNIT)
841+
#warning "EDITABLE_STEPS_PER_UNIT is required to enable G92 runtime configuration of steps-per-unit."
842+
#endif

Marlin/src/module/settings.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3799,7 +3799,9 @@ void MarlinSettings::reset() {
37993799
//
38003800
// M92 Steps per Unit
38013801
//
3802-
TERN_(EDITABLE_STEPS_PER_UNIT, gcode.M92_report(forReplay));
3802+
#if ENABLED(EDITABLE_STEPS_PER_UNIT)
3803+
gcode.M92_report(forReplay);
3804+
#endif
38033805

38043806
//
38053807
// M203 Maximum feedrates (units/s)

0 commit comments

Comments
 (0)