Browse Source

Add feedback sounds to MBL items

pull/1/head
Scott Lahteine 9 years ago
parent
commit
b0a3c7a91c
  1. 12
      Marlin/ultralcd.cpp

12
Marlin/ultralcd.cpp

@ -2471,6 +2471,14 @@ char* ftostr52(const float& x) {
mbl.active = 1;
enqueue_and_echo_commands_P(PSTR("G28"));
lcd_return_to_status();
#if ENABLED(NEWPANEL)
lcd_quick_feedback();
#endif
LCD_ALERTMESSAGEPGM("Leveling Done!");
#if HAS_BUZZER
buzz(200, 659);
buzz(200, 698);
#endif
}
else {
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
@ -2503,7 +2511,7 @@ char* ftostr52(const float& x) {
current_position[Y_AXIS] = MESH_MIN_Y;
line_to_current(manual_feedrate[X_AXIS] <= manual_feedrate[Y_AXIS] ? X_AXIS : Y_AXIS);
_lcd_level_bed_position = 0;
lcd_goto_menu(_lcd_level_bed);
lcd_goto_menu(_lcd_level_bed, true);
}
}
@ -2515,7 +2523,7 @@ char* ftostr52(const float& x) {
axis_known_position[X_AXIS] = axis_known_position[Y_AXIS] = axis_known_position[Z_AXIS] = false;
mbl.reset();
enqueue_and_echo_commands_P(PSTR("G28"));
lcd_goto_menu(_lcd_level_bed_homing);
lcd_goto_menu(_lcd_level_bed_homing, true);
}
#endif // MANUAL_BED_LEVELING

Loading…
Cancel
Save