浏览代码

🐛 Fix Teensy PINS_DEBUG compile (#21958)

Followup to 84a11cfedc
Alvaro Segura Del Barco 4 年前
父节点
当前提交
7c2834c33c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/HAL/AVR/pinsDebug.h

+ 1
- 1
Marlin/src/HAL/AVR/pinsDebug.h 查看文件

38
   // portModeRegister takes a different argument
38
   // portModeRegister takes a different argument
39
   #define digitalPinToTimer_DEBUG(p) digitalPinToTimer(p)
39
   #define digitalPinToTimer_DEBUG(p) digitalPinToTimer(p)
40
   #define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
40
   #define digitalPinToBitMask_DEBUG(p) digitalPinToBitMask(p)
41
-  #define digitalPinToPort_DEBUG(p) digitalPinToPort_Teensy(p)
41
+  #define digitalPinToPort_DEBUG(p) digitalPinToPort(p)
42
   #define GET_PINMODE(pin) (*portModeRegister(pin) & digitalPinToBitMask_DEBUG(pin))
42
   #define GET_PINMODE(pin) (*portModeRegister(pin) & digitalPinToBitMask_DEBUG(pin))
43
 
43
 
44
 #elif AVR_ATmega2560_FAMILY_PLUS_70   // So we can access/display all the pins on boards using more than 70
44
 #elif AVR_ATmega2560_FAMILY_PLUS_70   // So we can access/display all the pins on boards using more than 70

正在加载...
取消
保存