Assisted Tramming requires a probe (#18912)

This commit is contained in:
Keith Bennett 2020-08-03 20:39:29 -07:00 committed by GitHub
parent ca0ebf10d1
commit 5823ebb446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -769,7 +769,7 @@
#endif #endif
// //
// Add the G35 command to read bed corners to help adjust screws. // Add the G35 command to read bed corners to help adjust screws. Requires a bed probe.
// //
//#define ASSISTED_TRAMMING //#define ASSISTED_TRAMMING
#if ENABLED(ASSISTED_TRAMMING) #if ENABLED(ASSISTED_TRAMMING)

View file

@ -2072,6 +2072,13 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
#endif #endif
#endif #endif
/**
* G35 Assisted Tramming
*/
#if ENABLED(ASSISTED_TRAMMING) && !HAS_BED_PROBE
#error "ASSISTED_TRAMMING requires a bed probe."
#endif
/** /**
* G38 Probe Target * G38 Probe Target
*/ */