Add "Marlin Dev Mode" option

2.0.x
Scott Lahteine 6 years ago
parent 4b2af6ab48
commit e0ab8acf19

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1730,4 +1730,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1725,4 +1725,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1730,4 +1730,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1730,4 +1730,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1723,4 +1723,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1725,4 +1725,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1729,4 +1729,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1724,4 +1724,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1722,4 +1722,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -1723,4 +1723,7 @@
#define WIFI_PWD "Wifi Password"
#endif
// Enable Marlin dev mode which adds some special commands
//#define MARLIN_DEV_MODE
#endif // CONFIGURATION_ADV_H

@ -174,6 +174,19 @@ void GcodeSuite::G28(const bool always_home_all) {
}
#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 ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) {

Loading…
Cancel
Save