Browse Source

Patch some loop macros

pull/1/head
Scott Lahteine 7 years ago
parent
commit
d13f76b7da
  1. 4
      Marlin/src/core/enum.h

4
Marlin/src/core/enum.h

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

Loading…
Cancel
Save