Add "Marlin Dev Mode" option

This commit is contained in:
Scott Lahteine 2018-07-02 22:27:05 -05:00
parent 4b2af6ab48
commit e0ab8acf19
51 changed files with 163 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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