Add "Marlin Dev Mode" option
This commit is contained in:
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -4053,11 +4053,24 @@ inline void gcode_G28(const bool always_home_all) {
|
|||||||
|
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) {
|
if (DEBUGGING(LEVELING)) {
|
||||||
SERIAL_ECHOLNPGM(">>> gcode_G28");
|
SERIAL_ECHOLNPGM(">>> G28");
|
||||||
log_machine_info();
|
log_machine_info();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(MARLIN_DEV_MODE)
|
||||||
|
if (parser.seen('S')) {
|
||||||
|
LOOP_XYZ(a) set_axis_is_at_home((AxisEnum)a);
|
||||||
|
SYNC_PLAN_POSITION_KINEMATIC();
|
||||||
|
SERIAL_ECHOLNPGM("Simulated Homing");
|
||||||
|
report_current_position();
|
||||||
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< G28");
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (all_axes_known() && parser.boolval('O')) { // home only if needed
|
if (all_axes_known() && parser.boolval('O')) { // home only if needed
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) {
|
if (DEBUGGING(LEVELING)) {
|
||||||
@@ -4264,7 +4277,7 @@ inline void gcode_G28(const bool always_home_all) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< gcode_G28");
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< G28");
|
||||||
#endif
|
#endif
|
||||||
} // G28
|
} // G28
|
||||||
|
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1697,4 +1697,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1692,4 +1692,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1697,4 +1697,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1692,4 +1692,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1696,4 +1696,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1691,4 +1691,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1689,4 +1689,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
@@ -1690,4 +1690,7 @@
|
|||||||
// Default behaviour is limited to Z axis only.
|
// Default behaviour is limited to Z axis only.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable Marlin dev mode which adds some special commands
|
||||||
|
//#define MARLIN_DEV_MODE
|
||||||
|
|
||||||
#endif // CONFIGURATION_ADV_H
|
#endif // CONFIGURATION_ADV_H
|
||||||
|
Reference in New Issue
Block a user