Probe cycle line numbers ifdef fixes to get it to compile.
- Updated some of the ifdefs when disabling line numbers feature. Getting messy with this compile-time option. This will likely get cleaned up later. - This is just a push to get the new probing code to compile. Testing and optimization of the code will soon follow and be pushed next.
This commit is contained in:
parent
387a1b9f84
commit
4d7ca76f6c
3 changed files with 27 additions and 1 deletions
8
gcode.c
8
gcode.c
|
|
@ -371,7 +371,11 @@ uint8_t gc_execute_line(char *line)
|
|||
FAIL(STATUS_INVALID_STATEMENT);
|
||||
break;
|
||||
}
|
||||
#ifdef USE_LINE_NUMBERS
|
||||
if(mc_probe_cycle(target, (gc.inverse_feed_rate_mode) ? inverse_feed_rate : gc.feed_rate, gc.inverse_feed_rate_mode, line_number)){
|
||||
#else
|
||||
if(mc_probe_cycle(target, (gc.inverse_feed_rate_mode) ? inverse_feed_rate : gc.feed_rate, gc.inverse_feed_rate_mode)){
|
||||
#endif
|
||||
FAIL(STATUS_PROBE_ERROR);
|
||||
}
|
||||
axis_words = 0;
|
||||
|
|
@ -381,7 +385,11 @@ uint8_t gc_execute_line(char *line)
|
|||
FAIL(STATUS_INVALID_STATEMENT);
|
||||
break;
|
||||
}
|
||||
#ifdef USE_LINE_NUMBERS
|
||||
mc_probe_cycle(target, (gc.inverse_feed_rate_mode) ? inverse_feed_rate : gc.feed_rate, gc.inverse_feed_rate_mode, line_number);
|
||||
#else
|
||||
mc_probe_cycle(target, (gc.inverse_feed_rate_mode) ? inverse_feed_rate : gc.feed_rate, gc.inverse_feed_rate_mode);
|
||||
#endif
|
||||
axis_words = 0;
|
||||
break;
|
||||
case NON_MODAL_SET_HOME_0: case NON_MODAL_SET_HOME_1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue