Skip to content

Commit

Permalink
🔧 Check G29_RETRY_AND_RECOVER requirements (#21921)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and thinkyhead committed Jun 6, 2021
1 parent daab75b commit b921aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Marlin/src/inc/Conditionals_LCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,11 +945,13 @@
#if !HAS_LEVELING
#undef RESTORE_LEVELING_AFTER_G28
#undef ENABLE_LEVELING_AFTER_G28
#undef G29_RETRY_AND_RECOVER
#endif
#if !HAS_LEVELING || EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
#undef PROBE_MANUALLY
#endif
#if !HAS_ABL_NOT_UBL
#undef G29_RETRY_AND_RECOVER
#endif
#if ANY(HAS_BED_PROBE, PROBE_MANUALLY, MESH_BED_LEVELING)
#define PROBE_SELECTED 1
#endif
Expand Down
8 changes: 0 additions & 8 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1631,14 +1631,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#error "MESH_EDIT_GFX_OVERLAY requires AUTO_BED_LEVELING_UBL and a Graphical LCD."
#endif

#if ENABLED(G29_RETRY_AND_RECOVER)
#if ENABLED(AUTO_BED_LEVELING_UBL)
#error "G29_RETRY_AND_RECOVER is not compatible with UBL."
#elif ENABLED(MESH_BED_LEVELING)
#error "G29_RETRY_AND_RECOVER is not compatible with MESH_BED_LEVELING."
#endif
#endif

/**
* LCD_BED_LEVELING requirements
*/
Expand Down

0 comments on commit b921aac

Please sign in to comment.