Skip to content

Commit 6e67ad5

Browse files
🎨 Followup to optional M111/M115 (MarlinFirmware#26626)
Followup to MarlinFirmware#26603
1 parent 52693f7 commit 6e67ad5

File tree

7 files changed

+51
-51
lines changed

7 files changed

+51
-51
lines changed

Marlin/Configuration_adv.h

+42-42
Original file line numberDiff line numberDiff line change
@@ -3836,38 +3836,6 @@
38363836
*/
38373837
//#define CNC_COORDINATE_SYSTEMS
38383838

3839-
// @section reporting
3840-
3841-
/**
3842-
* Auto-report fan speed with M123 S<seconds>
3843-
* Requires fans with tachometer pins
3844-
*/
3845-
//#define AUTO_REPORT_FANS
3846-
3847-
/**
3848-
* Auto-report temperatures with M155 S<seconds>
3849-
*/
3850-
#define AUTO_REPORT_TEMPERATURES
3851-
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
3852-
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
3853-
#endif
3854-
3855-
/**
3856-
* Auto-report position with M154 S<seconds>
3857-
*/
3858-
//#define AUTO_REPORT_POSITION
3859-
#if ENABLED(AUTO_REPORT_POSITION)
3860-
//#define AUTO_REPORT_REAL_POSITION // Auto-report the real position
3861-
#endif
3862-
3863-
/**
3864-
* Include capabilities in M115 output
3865-
*/
3866-
#define EXTENDED_CAPABILITIES_REPORT
3867-
#if ENABLED(EXTENDED_CAPABILITIES_REPORT)
3868-
//#define M115_GEOMETRY_REPORT
3869-
#endif
3870-
38713839
// @section security
38723840

38733841
/**
@@ -3910,13 +3878,51 @@
39103878

39113879
// @section reporting
39123880

3913-
// Extra options for the M114 "Current Position" report
3881+
/**
3882+
* Extra options for the M114 "Current Position" report
3883+
*/
39143884
//#define M114_DETAIL // Use 'M114` for details to check planner calculations
39153885
//#define M114_REALTIME // Real current position based on forward kinematics
39163886
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
39173887

3888+
3889+
/**
3890+
* Auto-report fan speed with M123 S<seconds>
3891+
* Requires fans with tachometer pins
3892+
*/
3893+
//#define AUTO_REPORT_FANS
3894+
39183895
//#define REPORT_FAN_CHANGE // Report the new fan speed when changed by M106 (and others)
39193896

3897+
/**
3898+
* Auto-report temperatures with M155 S<seconds>
3899+
*/
3900+
#define AUTO_REPORT_TEMPERATURES
3901+
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
3902+
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
3903+
#endif
3904+
3905+
/**
3906+
* Auto-report position with M154 S<seconds>
3907+
*/
3908+
//#define AUTO_REPORT_POSITION
3909+
#if ENABLED(AUTO_REPORT_POSITION)
3910+
//#define AUTO_REPORT_REAL_POSITION // Auto-report the real position
3911+
#endif
3912+
3913+
/**
3914+
* M115 - Report capabilites. Disable to save ~1150 bytes of flash.
3915+
* Some hosts (and serial TFT displays) rely on this feature.
3916+
*/
3917+
#define CAPABILITIES_REPORT
3918+
#if ENABLED(CAPABILITIES_REPORT)
3919+
// Include capabilities in M115 output
3920+
#define EXTENDED_CAPABILITIES_REPORT
3921+
#if ENABLED(EXTENDED_CAPABILITIES_REPORT)
3922+
//#define M115_GEOMETRY_REPORT
3923+
#endif
3924+
#endif
3925+
39203926
// @section gcode
39213927

39223928
/**
@@ -3928,7 +3934,9 @@
39283934
//#define GCODE_QUOTED_STRINGS // Support for quoted string parameters
39293935
#endif
39303936

3931-
// Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
3937+
/**
3938+
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
3939+
*/
39323940
//#define MEATPACK_ON_SERIAL_PORT_1
39333941
//#define MEATPACK_ON_SERIAL_PORT_2
39343942

@@ -3942,12 +3950,6 @@
39423950
*/
39433951
#define DEBUG_FLAGS_GCODE
39443952

3945-
/**
3946-
* M115 - Report capabilites. Disable to save ~1150 bytes of flash.
3947-
* Some hosts (and serial TFT displays) rely on this feature.
3948-
*/
3949-
#define REPORT_CAPABILITIES_GCODE
3950-
39513953
/**
39523954
* Enable this option for a leaner build of Marlin that removes
39533955
* workspace offsets to slightly optimize performance.
@@ -3975,8 +3977,6 @@
39753977
//#define VARIABLE_G0_FEEDRATE // The G0 feedrate is set by F in G0 motion mode
39763978
#endif
39773979

3978-
// @section gcode
3979-
39803980
/**
39813981
* Startup commands
39823982
*

Marlin/src/gcode/gcode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
670670
case 92: M92(); break; // M92: Set the steps-per-unit for one or more axes
671671
case 114: M114(); break; // M114: Report current position
672672

673-
#if ENABLED(REPORT_CAPABILITIES_GCODE)
673+
#if ENABLED(CAPABILITIES_REPORT)
674674
case 115: M115(); break; // M115: Report capabilities
675675
#endif
676676

Marlin/src/gcode/gcode.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
*
150150
* M113 - Get or set the timeout interval for Host Keepalive "busy" messages. (Requires HOST_KEEPALIVE_FEATURE)
151151
* M114 - Report current position.
152-
* M115 - Report capabilities. (Extended capabilities requires EXTENDED_CAPABILITIES_REPORT)
152+
* M115 - Report capabilities. (Requires CAPABILITIES_REPORT)
153153
* M117 - Display a message on the controller screen. (Requires an LCD)
154154
* M118 - Display a message in the host console.
155155
*
@@ -761,7 +761,7 @@ class GcodeSuite {
761761

762762
static void M114();
763763

764-
#if ENABLED(REPORT_CAPABILITIES_GCODE)
764+
#if ENABLED(CAPABILITIES_REPORT)
765765
static void M115();
766766
#endif
767767

Marlin/src/gcode/host/M115.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "../../inc/MarlinConfig.h"
2424

25-
#if ENABLED(REPORT_CAPABILITIES_GCODE)
25+
#if ENABLED(CAPABILITIES_REPORT)
2626

2727
#include "../gcode.h"
2828
#include "../queue.h" // for getting the command port
@@ -275,4 +275,4 @@ void GcodeSuite::M115() {
275275
#endif // EXTENDED_CAPABILITIES_REPORT
276276
}
277277

278-
#endif // REPORT_CAPABILITIES_GCODE
278+
#endif // CAPABILITIES_REPORT

Marlin/src/inc/Warnings.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#warning "DEBUG_FLAGS_GCODE is recommended if you have space. Some hosts rely on it."
4747
#endif
4848

49-
#if DISABLED(REPORT_CAPABILITIES_GCODE)
50-
#warning "REPORT_CAPABILITIES_GCODE is recommended if you have space. Some hosts rely on it."
49+
#if DISABLED(CAPABILITIES_REPORT)
50+
#warning "CAPABILITIES_REPORT is recommended if you have space. Some hosts rely on it."
5151
#endif
5252

5353
#if ENABLED(LA_DEBUG)

Marlin/src/lcd/e3v2/proui/dwin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ void setMoveZ() { hmiValue.axis = Z_AXIS; setPFloatOnClick(Z_MIN_POS, Z_MAX_POS,
23062306
#endif
23072307
#endif
23082308

2309-
#if ENABLED(ADVANCED_PAUSE_FEATURE)
2309+
#if ENABLED(CONFIGURE_FILAMENT_CHANGE)
23102310
void setFilLoad() { setPFloatOnClick(0, EXTRUDE_MAXLENGTH, UNITFDIGITS); }
23112311
void setFilUnload() { setPFloatOnClick(0, EXTRUDE_MAXLENGTH, UNITFDIGITS); }
23122312
#endif

ini/features.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ CNC_COORDINATE_SYSTEMS = build_src_filter=+<src/gcode/geometry/G
323323
HAS_HOME_OFFSET = build_src_filter=+<src/gcode/geometry/M206_M428.cpp>
324324
EXPECTED_PRINTER_CHECK = build_src_filter=+<src/gcode/host/M16.cpp>
325325
HOST_KEEPALIVE_FEATURE = build_src_filter=+<src/gcode/host/M113.cpp>
326-
REPORT_CAPABILITIES_GCODE = build_src_filter=+<src/gcode/host/M115.cpp>
326+
CAPABILITIES_REPORT = build_src_filter=+<src/gcode/host/M115.cpp>
327327
AUTO_REPORT_POSITION = build_src_filter=+<src/gcode/host/M154.cpp>
328328
REPETIER_GCODE_M360 = build_src_filter=+<src/gcode/host/M360.cpp>
329329
HAS_GCODE_M876 = build_src_filter=+<src/gcode/host/M876.cpp>

0 commit comments

Comments
 (0)