Browse Source

Some additional {} to make the compiler happy.

AnHardt 10 years ago
parent
commit
2b959a7752
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      Marlin/stepper.cpp

+ 6
- 2
Marlin/stepper.cpp View File

459
       #ifdef COREXY
459
       #ifdef COREXY
460
         // Head direction in -X axis for CoreXY bots.
460
         // Head direction in -X axis for CoreXY bots.
461
         // If DeltaX == -DeltaY, the movement is only in Y axis
461
         // If DeltaX == -DeltaY, the movement is only in Y axis
462
-        if (current_block->steps[A_AXIS] != current_block->steps[B_AXIS] || (TEST(out_bits, A_AXIS) == TEST(out_bits, B_AXIS)))
462
+        if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || (TEST(out_bits, A_AXIS) == TEST(out_bits, B_AXIS))) {
463
           if (TEST(out_bits, X_HEAD))
463
           if (TEST(out_bits, X_HEAD))
464
       #else
464
       #else
465
           if (TEST(out_bits, X_AXIS))   // stepping along -X axis (regular cartesians bot)
465
           if (TEST(out_bits, X_AXIS))   // stepping along -X axis (regular cartesians bot)
487
               }
487
               }
488
           }
488
           }
489
       #ifdef COREXY
489
       #ifdef COREXY
490
+        }
490
         // Head direction in -Y axis for CoreXY bots.
491
         // Head direction in -Y axis for CoreXY bots.
491
         // If DeltaX == DeltaY, the movement is only in X axis
492
         // If DeltaX == DeltaY, the movement is only in X axis
492
-        if (current_block->steps[A_AXIS] != current_block->steps[B_AXIS] || (TEST(out_bits, A_AXIS) != TEST(out_bits, B_AXIS)))
493
+        if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || (TEST(out_bits, A_AXIS) != TEST(out_bits, B_AXIS))) {
493
           if (TEST(out_bits, Y_HEAD))
494
           if (TEST(out_bits, Y_HEAD))
494
       #else
495
       #else
495
           if (TEST(out_bits, Y_AXIS))   // -direction
496
           if (TEST(out_bits, Y_AXIS))   // -direction
504
               UPDATE_ENDSTOP(y, Y, max, MAX);
505
               UPDATE_ENDSTOP(y, Y, max, MAX);
505
             #endif
506
             #endif
506
           }
507
           }
508
+      #ifdef COREXY
509
+        }
510
+      #endif
507
     }
511
     }
508
 
512
 
509
     if (TEST(out_bits, Z_AXIS)) {   // -direction
513
     if (TEST(out_bits, Z_AXIS)) {   // -direction

Loading…
Cancel
Save