Sfoglia il codice sorgente

Merge pull request #1626 from Wurstnase/fix_backslash_macro

fix macro
alexborro 9 anni fa
parent
commit
f5f99c4883
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      Marlin/stepper.cpp

+ 2
- 2
Marlin/stepper.cpp Vedi File

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

Loading…
Annulla
Salva