File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -26,37 +26,39 @@ uint8_t next_tool;
2626
2727
2828/*
29- public functions
29+ private functions
30+
31+ this is where we construct a move without a gcode command, useful for gcodes which require multiple moves eg; homing
3032*/
3133
32- void zero_x (void ) {
34+ static void zero_x (void ) {
3335 TARGET t = startpoint ;
3436 t .X = 0 ;
3537 t .F = SEARCH_FEEDRATE_X ;
3638 enqueue (& t );
3739}
3840
39- void zero_y (void ) {
41+ static void zero_y (void ) {
4042 TARGET t = startpoint ;
4143 t .Y = 0 ;
4244 t .F = SEARCH_FEEDRATE_Y ;
4345 enqueue (& t );
4446}
4547
46- void zero_z (void ) {
48+ static void zero_z (void ) {
4749 TARGET t = startpoint ;
4850 t .Z = 0 ;
4951 t .F = SEARCH_FEEDRATE_Z ;
5052 enqueue (& t );
5153}
5254
53- void zero_e (void ) {
55+ static void zero_e (void ) {
5456 TARGET t = startpoint ;
5557 t .E = 0 ;
5658 enqueue (& t );
5759}
5860
59- void SpecialMoveE (int32_t e , uint32_t f ) {
61+ static void SpecialMoveE (int32_t e , uint32_t f ) {
6062 TARGET t = startpoint ;
6163 t .E = e ;
6264 t .F = f ;
Original file line number Diff line number Diff line change @@ -8,14 +8,6 @@ extern uint8_t tool;
88// the tool to be changed when we get an M6
99extern uint8_t next_tool ;
1010
11- void zero_x (void );
12- void zero_y (void );
13- void zero_z (void );
14- void zero_e (void );
15-
16- // this is where we construct a move without a gcode command, useful for gcodes which require multiple moves eg; homing
17- void SpecialMoveE (int32_t e , uint32_t f );
18-
1911// when we have a whole line, feed it to this
2012void process_gcode_command (void );
2113
You can’t perform that action at this time.
0 commit comments