Browse Source

Fix caselight on Due (#9364)

Bob-the-Kuhn 7 years ago
parent
commit
a0570ff1eb
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Marlin/src/HAL/HAL_DUE/fastio_Due.h

+ 1
- 0
Marlin/src/HAL/HAL_DUE/fastio_Due.h View File

@@ -89,6 +89,7 @@
89 89
 #define _SET_OUTPUT(IO) do{ pmc_enable_periph_clk(g_APinDescription[IO].ulPeripheralId); \
90 90
                             PIO_Configure(g_APinDescription[IO].pPort, _READ(IO) ? PIO_OUTPUT_1 : PIO_OUTPUT_0, \
91 91
                                           g_APinDescription[IO].ulPin, g_APinDescription[IO].ulPinConfiguration); \
92
+                            g_pinStatus[IO] = (g_pinStatus[IO] & 0xF0) | PIN_STATUS_DIGITAL_OUTPUT;\               
92 93
                         }while(0)
93 94
 
94 95
 /// set pin as input with pullup mode

Loading…
Cancel
Save