Permalink
Browse files

gcode_process.c: make special moves non-public.

This adds some 30 bytes program size for whatever reason.
  • Loading branch information...
1 parent 1a33cfd commit 5c31bc01c1476f28af6b65162c8151ab494b6aa9 @Traumflug committed Feb 23, 2011
Showing with 8 additions and 14 deletions.
  1. +8 −6 gcode_process.c
  2. +0 −8 gcode_process.h
View
14 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;
View
8 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);

0 comments on commit 5c31bc0

Please sign in to comment.