Optional menu item for Assisted Tramming (#19447)

This commit is contained in:
qwewer0 2020-09-21 05:29:34 +02:00 committed by GitHub
parent d8ed749045
commit 0251eb85b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -773,7 +773,6 @@
// //
//#define ASSISTED_TRAMMING //#define ASSISTED_TRAMMING
#if ENABLED(ASSISTED_TRAMMING) #if ENABLED(ASSISTED_TRAMMING)
// Define positions for probing points, use the hotend as reference not the sensor. // Define positions for probing points, use the hotend as reference not the sensor.
#define TRAMMING_POINT_XY { { 20, 20 }, { 200, 20 }, { 200, 200 }, { 20, 200 } } #define TRAMMING_POINT_XY { { 20, 20 }, { 200, 20 }, { 200, 200 }, { 20, 200 } }
@ -786,6 +785,9 @@
// Enable to restore leveling setup after operation // Enable to restore leveling setup after operation
#define RESTORE_LEVELING_AFTER_G35 #define RESTORE_LEVELING_AFTER_G35
// Add a menu item for Assisted Tramming
//#define ASSISTED_TRAMMING_MENU_ITEM
/** /**
* Screw thread: * Screw thread:
* M3: 30 = Clockwise, 31 = Counter-Clockwise * M3: 30 = Clockwise, 31 = Counter-Clockwise
@ -793,7 +795,6 @@
* M5: 50 = Clockwise, 51 = Counter-Clockwise * M5: 50 = Clockwise, 51 = Counter-Clockwise
*/ */
#define TRAMMING_SCREW_THREAD 30 #define TRAMMING_SCREW_THREAD 30
#endif #endif
// @section motion // @section motion

View file

@ -348,7 +348,7 @@ void menu_motion() {
// //
// Assisted Bed Tramming // Assisted Bed Tramming
// //
#if ENABLED(ASSISTED_TRAMMING) #if ENABLED(ASSISTED_TRAMMING_MENU_ITEM)
GCODES_ITEM(MSG_ASSISTED_TRAMMING, PSTR("G35")); GCODES_ITEM(MSG_ASSISTED_TRAMMING, PSTR("G35"));
#endif #endif