Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#3209 from AnHardt/call-buzz-direct
Browse files Browse the repository at this point in the history
Call buzz() directly from M428
  • Loading branch information
thinkyhead committed Mar 22, 2016
2 parents cadded1 + 6486e8b commit 815943c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5413,7 +5413,7 @@ inline void gcode_M428() {
SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR);
LCD_ALERTMESSAGEPGM("Err: Too far!");
#if HAS_BUZZER
enqueue_and_echo_commands_P(PSTR("M300 S40 P200"));
buzz(200, 40);
#endif
err = true;
break;
Expand All @@ -5427,7 +5427,8 @@ inline void gcode_M428() {
sync_plan_position();
LCD_ALERTMESSAGEPGM("Offset applied.");
#if HAS_BUZZER
enqueue_and_echo_commands_P(PSTR("M300 S659 P200\nM300 S698 P200"));
buzz(200, 659);
buzz(200, 698);
#endif
}
}
Expand Down

0 comments on commit 815943c

Please sign in to comment.