🧑‍💻 STM32G0B1RE Pins Debugging (#24748)

This commit is contained in:
Chris Bagwell
2022-09-16 13:30:04 -05:00
committed by Scott Lahteine
parent bdb7f3af3f
commit e04e18a590
6 changed files with 16 additions and 11 deletions

View File

@@ -313,7 +313,7 @@ void GcodeSuite::M43() {
// 'P' Get the range of pins to test or watch
uint8_t first_pin = PARSED_PIN_INDEX('P', 0),
last_pin = parser.seenval('P') ? first_pin : TERN(HAS_HIGH_ANALOG_PINS, NUM_DIGITAL_PINS, NUMBER_PINS_TOTAL) - 1;
last_pin = parser.seenval('P') ? first_pin : (NUMBER_PINS_TOTAL) - 1;
if (first_pin > last_pin) return;