From 5c31bc01c1476f28af6b65162c8151ab494b6aa9 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 23 Feb 2011 14:59:44 +0100 Subject: [PATCH] gcode_process.c: make special moves non-public. This adds some 30 bytes program size for whatever reason. --- gcode_process.c | 14 ++++++++------ gcode_process.h | 8 -------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index cbaa06b..3bb46ff 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -26,37 +26,39 @@ uint8_t next_tool; /* -public functions + private functions + + this is where we construct a move without a gcode command, useful for gcodes which require multiple moves eg; homing */ -void zero_x(void) { +static void zero_x(void) { TARGET t = startpoint; t.X = 0; t.F = SEARCH_FEEDRATE_X; enqueue(&t); } -void zero_y(void) { +static void zero_y(void) { TARGET t = startpoint; t.Y = 0; t.F = SEARCH_FEEDRATE_Y; enqueue(&t); } -void zero_z(void) { +static void zero_z(void) { TARGET t = startpoint; t.Z = 0; t.F = SEARCH_FEEDRATE_Z; enqueue(&t); } -void zero_e(void) { +static void zero_e(void) { TARGET t = startpoint; t.E = 0; enqueue(&t); } -void SpecialMoveE(int32_t e, uint32_t f) { +static void SpecialMoveE(int32_t e, uint32_t f) { TARGET t = startpoint; t.E = e; t.F = f; diff --git a/gcode_process.h b/gcode_process.h index 7c453fc..4086b84 100644 --- a/gcode_process.h +++ b/gcode_process.h @@ -8,14 +8,6 @@ extern uint8_t tool; // the tool to be changed when we get an M6 extern uint8_t next_tool; -void zero_x(void); -void zero_y(void); -void zero_z(void); -void zero_e(void); - -// this is where we construct a move without a gcode command, useful for gcodes which require multiple moves eg; homing -void SpecialMoveE(int32_t e, uint32_t f); - // when we have a whole line, feed it to this void process_gcode_command(void);