Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#6528 from MarlinFirmware/revert-641…
Browse files Browse the repository at this point in the history
…6-negative-mesh-fix

Revert "Fix for Meshpositions if printer has negative endstop positions"
  • Loading branch information
thinkyhead authored May 1, 2017
2 parents 8bd63aa + 4803a43 commit f69acde
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -645,30 +645,14 @@
// Below are the macros that are used to define the borders for the mesh area,
// made available here for specialized needs, ie dual extruder setup.
#if ENABLED(MESH_BED_LEVELING)
#if X_MIN_POS < 0
#define MESH_MIN_X (MESH_INSET)
#else
#define MESH_MIN_X (X_MIN_POS + (MESH_INSET))
#endif
#define MESH_MIN_X (X_MIN_POS + MESH_INSET)
#define MESH_MAX_X (X_MAX_POS - (MESH_INSET))
#if Y_MIN_POS < 0
#define MESH_MIN_Y (MESH_INSET)
#else
#define MESH_MIN_Y (Y_MIN_POS + (MESH_INSET))
#endif
#define MESH_MIN_Y (Y_MIN_POS + MESH_INSET)
#define MESH_MAX_Y (Y_MAX_POS - (MESH_INSET))
#elif ENABLED(AUTO_BED_LEVELING_UBL)
#if X_MIN_POS < 0
#define UBL_MESH_MIN_X (UBL_MESH_INSET)
#else
#define UBL_MESH_MIN_X (X_MIN_POS + (UBL_MESH_INSET))
#endif
#define UBL_MESH_MIN_X (X_MIN_POS + UBL_MESH_INSET)
#define UBL_MESH_MAX_X (X_MAX_POS - (UBL_MESH_INSET))
#if Y_MIN_POS < 0
#define UBL_MESH_MIN_Y (UBL_MESH_INSET)
#else
#define UBL_MESH_MIN_Y (Y_MIN_POS + (UBL_MESH_INSET))
#endif
#define UBL_MESH_MIN_Y (Y_MIN_POS + UBL_MESH_INSET)
#define UBL_MESH_MAX_Y (Y_MAX_POS - (UBL_MESH_INSET))

// If this is defined, the currently active mesh will be saved in the
Expand Down

0 comments on commit f69acde

Please sign in to comment.