Call buzz() directly from M428

This commit is contained in:
AnHardt 2016-03-22 15:02:01 +01:00
parent cadded1e21
commit 6486e8b74a

View File

@ -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
} }
} }