Move G4 to cpp

This commit is contained in:
Scott Lahteine
2017-09-15 21:17:34 -05:00
parent 4007cbfe9e
commit 760f29a88e
4 changed files with 8 additions and 7 deletions

View File

@ -20,10 +20,14 @@
*
*/
#include "../gcode.h"
#include "../../module/stepper.h"
#include "../../lcd/ultralcd.h"
/**
* G4: Dwell S<seconds> or P<milliseconds>
*/
void gcode_G4() {
void GcodeSuite::G4() {
millis_t dwell_ms = 0;
if (parser.seenval('P')) dwell_ms = parser.value_millis(); // milliseconds to wait
@ -33,5 +37,5 @@ void gcode_G4() {
if (!lcd_hasstatus()) LCD_MESSAGEPGM(MSG_DWELL);
gcode.dwell(dwell_ms);
dwell(dwell_ms);
}