Browse Source

fix NUM_DIGITAL_PINS being negative for more than 127 digital pins

Harald Gutsche 7 years ago
parent
commit
dd1b503f64
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_LPC1768/pinmapping.h

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/pinmapping.h View File

239
   P_NC,  P_NC,  P_NC,  P_NC,  P4_28, P4_29, P_NC,  P_NC
239
   P_NC,  P_NC,  P_NC,  P_NC,  P4_28, P4_29, P_NC,  P_NC
240
 };
240
 };
241
 
241
 
242
-constexpr int8_t NUM_DIGITAL_PINS = COUNT(pin_map);
242
+constexpr uint8_t NUM_DIGITAL_PINS = COUNT(pin_map);
243
 
243
 
244
 constexpr pin_t adc_pin_table[] = {
244
 constexpr pin_t adc_pin_table[] = {
245
   P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,
245
   P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,

Loading…
Cancel
Save