瀏覽代碼

Followup to pin error change

Scott Lahteine 7 年之前
父節點
當前提交
117fd007a9

+ 1
- 1
Marlin/src/HAL/HAL_TEENSY35_36/fastio_Teensy.h 查看文件

@@ -62,7 +62,7 @@
62 62
   CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1)|PORT_PCR_SRE|PORT_PCR_DSE; \
63 63
   GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 1; \
64 64
 }while(0)
65
-	
65
+
66 66
 #define _SET_INPUT_PULLUP(P) do{ \
67 67
   CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; \
68 68
   GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 0; \

+ 1
- 1
Marlin/src/config/examples/BQ/Hephestos_2/_Bootscreen.h 查看文件

@@ -96,5 +96,5 @@ const unsigned char custom_start_bmp[] PROGMEM = {
96 96
   B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
97 97
   B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
98 98
   B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
99
-  B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000 
99
+  B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000
100 100
 };

+ 1
- 1
Marlin/src/gcode/control/M42.cpp 查看文件

@@ -42,7 +42,7 @@ void GcodeSuite::M42() {
42 42
 
43 43
   const pin_t pin = GET_PIN_MAP_PIN(pin_index);
44 44
 
45
-  if (pin_is_protected(pin_number)) return protected_pin_err();
45
+  if (pin_is_protected(pin)) return protected_pin_err();
46 46
 
47 47
   pinMode(pin, OUTPUT);
48 48
   digitalWrite(pin, pin_status);

Loading…
取消
儲存