Browse Source

Add feedback sounds to MBL items

Scott Lahteine 9 years ago
parent
commit
b0a3c7a91c
1 changed files with 10 additions and 2 deletions
  1. 10
    2
      Marlin/ultralcd.cpp

+ 10
- 2
Marlin/ultralcd.cpp View File

@@ -2471,6 +2471,14 @@ char* ftostr52(const float& x) {
2471 2471
           mbl.active = 1;
2472 2472
           enqueue_and_echo_commands_P(PSTR("G28"));
2473 2473
           lcd_return_to_status();
2474
+          #if ENABLED(NEWPANEL)
2475
+            lcd_quick_feedback();
2476
+          #endif
2477
+          LCD_ALERTMESSAGEPGM("Leveling Done!");
2478
+          #if HAS_BUZZER
2479
+            buzz(200, 659);
2480
+            buzz(200, 698);
2481
+          #endif
2474 2482
         }
2475 2483
         else {
2476 2484
           current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
@@ -2503,7 +2511,7 @@ char* ftostr52(const float& x) {
2503 2511
       current_position[Y_AXIS] = MESH_MIN_Y;
2504 2512
       line_to_current(manual_feedrate[X_AXIS] <= manual_feedrate[Y_AXIS] ? X_AXIS : Y_AXIS);
2505 2513
       _lcd_level_bed_position = 0;
2506
-      lcd_goto_menu(_lcd_level_bed);
2514
+      lcd_goto_menu(_lcd_level_bed, true);
2507 2515
     }
2508 2516
   }
2509 2517
 
@@ -2515,7 +2523,7 @@ char* ftostr52(const float& x) {
2515 2523
     axis_known_position[X_AXIS] = axis_known_position[Y_AXIS] = axis_known_position[Z_AXIS] = false;
2516 2524
     mbl.reset();
2517 2525
     enqueue_and_echo_commands_P(PSTR("G28"));
2518
-    lcd_goto_menu(_lcd_level_bed_homing);
2526
+    lcd_goto_menu(_lcd_level_bed_homing, true);
2519 2527
   }
2520 2528
 
2521 2529
 #endif  // MANUAL_BED_LEVELING

Loading…
Cancel
Save