浏览代码

Merge pull request #8616 from hg42/bugfix-2.0.x

[2.0.x][LPC1768][FIX] NUM_DIGITAL_PINS was negative, fixes PWM, arduino io functions, M42, M43, M226, probably also Servo, some LCD, soft spi, SoftwareSerial, ... may be others
Bob-the-Kuhn 7 年前
父节点
当前提交
fb44f8e50f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/HAL/HAL_LPC1768/pinmapping.h

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/pinmapping.h 查看文件

@@ -239,7 +239,7 @@ constexpr pin_t pin_map[] = {
239 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 244
 constexpr pin_t adc_pin_table[] = {
245 245
   P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,

正在加载...
取消
保存