Skip to content
Snippets Groups Projects
Commit 05333f61 authored by wurstnase's avatar wurstnase
Browse files

fix macro

parent 89fe7746
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment