Skip to content

Commit

Permalink
Patch up LCD level bed menus
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and damicreabox committed Sep 14, 2018
1 parent 6f4bd4e commit c7e0fa6
Show file tree
Hide file tree
Showing 2 changed files with 436 additions and 467 deletions.
24 changes: 20 additions & 4 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3906,6 +3906,10 @@ void home_all_axes() { gcode_G28(true); }

#if ENABLED(MESH_BED_LEVELING) || ENABLED(PROBE_MANUALLY)

#if ENABLED(PROBE_MANUALLY) && ENABLED(LCD_BED_LEVELING)
extern bool lcd_wait_for_move;
#endif

inline void _manual_goto_xy(const float &x, const float &y) {
const float old_feedrate_mm_s = feedrate_mm_s;

Expand All @@ -3928,6 +3932,10 @@ void home_all_axes() { gcode_G28(true); }

feedrate_mm_s = old_feedrate_mm_s;
stepper.synchronize();

#if ENABLED(PROBE_MANUALLY) && ENABLED(LCD_BED_LEVELING)
lcd_wait_for_move = false;
#endif
}

#endif
Expand Down Expand Up @@ -4520,16 +4528,20 @@ void home_all_axes() { gcode_G28(true); }
#endif
planner.abl_enabled = abl_should_enable;
g29_in_progress = false;
#if ENABLED(LCD_BED_LEVELING)
lcd_wait_for_move = false;
#endif
}

// Query G29 status
if (verbose_level || seenQ) {
if (!g29_in_progress)
SERIAL_PROTOCOLLNPGM("Manual G29 idle");
else {
SERIAL_PROTOCOLPAIR("Manual G29 point ", abl_probe_index + 1);
SERIAL_PROTOCOLPGM("Manual G29 ");
if (g29_in_progress) {
SERIAL_PROTOCOLPAIR("point ", abl_probe_index + 1);
SERIAL_PROTOCOLLNPAIR(" of ", abl2);
}
else
SERIAL_PROTOCOLLNPGM("idle");
}

if (seenA || seenQ) return;
Expand Down Expand Up @@ -4787,6 +4799,10 @@ void home_all_axes() { gcode_G28(true); }
if (DEBUGGING(LEVELING)) DEBUG_POS("> probing complete", current_position);
#endif

#if ENABLED(PROBE_MANUALLY) && ENABLED(LCD_BED_LEVELING)
lcd_wait_for_move = false;
#endif

// Calculate leveling, print reports, correct the position
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)

Expand Down
Loading

0 comments on commit c7e0fa6

Please sign in to comment.