1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-24 04:29:34 +00:00

fix macro

This commit is contained in:
wurstnase 2015-03-17 12:50:44 +01:00
parent 89fe77468d
commit 05333f61b7

View File

@ -529,10 +529,10 @@ ISR(TIMER1_COMPA_vect) {
#endif
#define STEP_IF_COUNTER(axis, AXIS) \
if (counter_## axis > 0) {
if (counter_## axis > 0) { \
counter_## axis -= current_block->step_event_count; \
count_position[AXIS ##_AXIS] += count_direction[AXIS ##_AXIS]; \
AXIS ##_STEP_WRITE(LOW);
AXIS ##_STEP_WRITE(LOW); \
}
STEP_IF_COUNTER(x, X);