Cleanup, hex formatting

This commit is contained in:
Scott Lahteine
2021-05-05 06:32:54 -05:00
parent f67cd07328
commit a468701511
9 changed files with 2329 additions and 2328 deletions

View File

@ -72,7 +72,7 @@ void GcodeSuite::M9() {
* M8: Air Assist On
*/
void GcodeSuite::M8() {
planner.synchronize();
planner.synchronize();
cutter.air_assist_enable(); // Turn on Air Assist pin
}
@ -80,7 +80,7 @@ void GcodeSuite::M8() {
* M9: Air Assist Off
*/
void GcodeSuite::M9() {
planner.synchronize();
planner.synchronize();
cutter.air_assist_disable(); // Turn off Air Assist pin
}

View File

@ -1060,7 +1060,7 @@ void GcodeSuite::process_subcommands_now_P(PGM_P pgcode) {
strncpy_P(cmd, pgcode, len); // Copy the command to the stack
cmd[len] = '\0'; // End with a nul
parser.parse(cmd); // Parse the command
process_parsed_command(true); // Process it
process_parsed_command(true); // Process it (no "ok")
if (!delim) break; // Last command?
pgcode = delim + 1; // Get the next command
}
@ -1073,7 +1073,7 @@ void GcodeSuite::process_subcommands_now(char * gcode) {
char * const delim = strchr(gcode, '\n'); // Get address of next newline
if (delim) *delim = '\0'; // Replace with nul
parser.parse(gcode); // Parse the current command
process_parsed_command(true); // Process it
process_parsed_command(true); // Process it (no "ok")
if (!delim) break; // Last command?
*delim = '\n'; // Put back the newline
gcode = delim + 1; // Get the next command