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
@@ -228,7 +228,7 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
return true;
};
for (uint8_t x = 0; x < COUNT(pin_array); x++) { // scan entire array and report all instances of this pin
LOOP_L_N(x, COUNT(pin_array)) { // scan entire array and report all instances of this pin
if (GET_ARRAY_PIN(x) == pin) {
if (!found) { // report digital and analog pin number only on the first time through
if (start_string) serialprintPGM(start_string);