Browse Source

Call buzz() directly from M428

pull/1/head
AnHardt 9 years ago
parent
commit
6486e8b74a
  1. 5
      Marlin/Marlin_main.cpp

5
Marlin/Marlin_main.cpp

@ -5413,7 +5413,7 @@ inline void gcode_M428() {
SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR); SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR);
LCD_ALERTMESSAGEPGM("Err: Too far!"); LCD_ALERTMESSAGEPGM("Err: Too far!");
#if HAS_BUZZER #if HAS_BUZZER
enqueue_and_echo_commands_P(PSTR("M300 S40 P200")); buzz(200, 40);
#endif #endif
err = true; err = true;
break; break;
@ -5427,7 +5427,8 @@ inline void gcode_M428() {
sync_plan_position(); sync_plan_position();
LCD_ALERTMESSAGEPGM("Offset applied."); LCD_ALERTMESSAGEPGM("Offset applied.");
#if HAS_BUZZER #if HAS_BUZZER
enqueue_and_echo_commands_P(PSTR("M300 S659 P200\nM300 S698 P200")); buzz(200, 659);
buzz(200, 698);
#endif #endif
} }
} }

Loading…
Cancel
Save