Merge pull request #3209 from AnHardt/call-buzz-direct
Call buzz() directly from M428
This commit is contained in:
commit
815943ceed
|
@ -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…
Reference in a new issue