gcode_process.c: make special moves non-public.
This adds some 30 bytes program size for whatever reason.
This commit is contained in:
parent
1a33cfddf6
commit
5c31bc01c1
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue