From dd1b503f64b907e38929c90b692d11891ef28b19 Mon Sep 17 00:00:00 2001 From: Harald Gutsche Date: Fri, 1 Dec 2017 06:45:39 +0100 Subject: [PATCH] fix NUM_DIGITAL_PINS being negative for more than 127 digital pins --- Marlin/src/HAL/HAL_LPC1768/pinmapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/pinmapping.h b/Marlin/src/HAL/HAL_LPC1768/pinmapping.h index 371152e3cf..aa63a7add4 100644 --- a/Marlin/src/HAL/HAL_LPC1768/pinmapping.h +++ b/Marlin/src/HAL/HAL_LPC1768/pinmapping.h @@ -239,7 +239,7 @@ constexpr pin_t pin_map[] = { P_NC, P_NC, P_NC, P_NC, P4_28, P4_29, P_NC, P_NC }; -constexpr int8_t NUM_DIGITAL_PINS = COUNT(pin_map); +constexpr uint8_t NUM_DIGITAL_PINS = COUNT(pin_map); constexpr pin_t adc_pin_table[] = { P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,