Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
gcode_process.c: make special moves non-public.
Browse files Browse the repository at this point in the history
This adds some 30 bytes program size for whatever reason.
  • Loading branch information
Traumflug committed Feb 27, 2011
1 parent 1a33cfd commit 5c31bc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
14 changes: 8 additions & 6 deletions gcode_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions gcode_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5c31bc0

Please sign in to comment.