Bladeren bron

Merge pull request #3209 from AnHardt/call-buzz-direct

Call buzz() directly from M428
Scott Lahteine 9 jaren geleden
bovenliggende
commit
815943ceed
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3
    2
      Marlin/Marlin_main.cpp

+ 3
- 2
Marlin/Marlin_main.cpp Bestand weergeven

@@ -5413,7 +5413,7 @@ inline void gcode_M428() {
5413 5413
         SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR);
5414 5414
         LCD_ALERTMESSAGEPGM("Err: Too far!");
5415 5415
         #if HAS_BUZZER
5416
-          enqueue_and_echo_commands_P(PSTR("M300 S40 P200"));
5416
+          buzz(200, 40);
5417 5417
         #endif
5418 5418
         err = true;
5419 5419
         break;
@@ -5427,7 +5427,8 @@ inline void gcode_M428() {
5427 5427
     sync_plan_position();
5428 5428
     LCD_ALERTMESSAGEPGM("Offset applied.");
5429 5429
     #if HAS_BUZZER
5430
-      enqueue_and_echo_commands_P(PSTR("M300 S659 P200\nM300 S698 P200"));
5430
+      buzz(200, 659);
5431
+      buzz(200, 698);
5431 5432
     #endif
5432 5433
   }
5433 5434
 }

Laden…
Annuleren
Opslaan