Use NUM_DIGITAL_PINS instead of custom DIO_COUNT

This commit is contained in:
Scott Lahteine
2016-10-31 07:36:01 -05:00
parent 04a1fac029
commit ff3a8ca0d1
2 changed files with 2 additions and 19 deletions

View File

@@ -4700,10 +4700,10 @@ inline void gcode_M42() {
}
// Get the range of pins to test or watch
int first_pin = 0, last_pin = DIO_COUNT - 1;
int first_pin = 0, last_pin = NUM_DIGITAL_PINS - 1;
if (code_seen('P')) {
first_pin = last_pin = code_value_byte();
if (first_pin > DIO_COUNT - 1) return;
if (first_pin > NUM_DIGITAL_PINS - 1) return;
}
bool ignore_protection = code_seen('I') ? code_value_bool() : false;