Apply loop shorthand macros (#17159)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2020-03-13 23:18:16 -05:00
1 parent a96be32fae
commit 118bd2f8b2
93 files changed
+465 -505

No files matched your search

+1 -1
View File
@@ -481,7 +481,7 @@ void _O2 Endstops::report_states() {
print_es_state(READ(FIL_RUNOUT_PIN) != FIL_RUNOUT_INVERTING, PSTR(STR_FILAMENT_RUNOUT_SENSOR));
#else
#define _CASE_RUNOUT(N) case N: pin = FIL_RUNOUT##N##_PIN; break;
for (uint8_t i = 1; i <= NUM_RUNOUT_SENSORS; i++) {
LOOP_S_LE_N(i, 1, NUM_RUNOUT_SENSORS) {
pin_t pin;
switch (i) {
default: continue;