Browse Source

Patch some loop macros

Scott Lahteine 7 years ago
parent
commit
d13f76b7da
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/core/enum.h

+ 2
- 2
Marlin/src/core/enum.h View File

@@ -45,8 +45,8 @@ enum AxisEnum : unsigned char {
45 45
   NO_AXIS   = 0xFF
46 46
 };
47 47
 
48
-#define LOOP_S_LE_N(VAR, S, N) for (uint8_t VAR=S; VAR<=N; VAR++)
49
-#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=S; VAR<N; VAR++)
48
+#define LOOP_S_LE_N(VAR, S, N) for (uint8_t VAR=(S); VAR<=(N); VAR++)
49
+#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
50 50
 #define LOOP_LE_N(VAR, N) LOOP_S_LE_N(VAR, 0, N)
51 51
 #define LOOP_L_N(VAR, N) LOOP_S_L_N(VAR, 0, N)
52 52
 

Loading…
Cancel
Save