From a0570ff1eb688690e7fb7f9557d044a732ec7463 Mon Sep 17 00:00:00 2001 From: Bob-the-Kuhn Date: Fri, 2 Feb 2018 04:13:33 -0600 Subject: [PATCH] Fix caselight on Due (#9364) --- Marlin/src/HAL/HAL_DUE/fastio_Due.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Marlin/src/HAL/HAL_DUE/fastio_Due.h b/Marlin/src/HAL/HAL_DUE/fastio_Due.h index 237158725..9545ac82e 100644 --- a/Marlin/src/HAL/HAL_DUE/fastio_Due.h +++ b/Marlin/src/HAL/HAL_DUE/fastio_Due.h @@ -89,6 +89,7 @@ #define _SET_OUTPUT(IO) do{ pmc_enable_periph_clk(g_APinDescription[IO].ulPeripheralId); \ PIO_Configure(g_APinDescription[IO].pPort, _READ(IO) ? PIO_OUTPUT_1 : PIO_OUTPUT_0, \ g_APinDescription[IO].ulPin, g_APinDescription[IO].ulPinConfiguration); \ + g_pinStatus[IO] = (g_pinStatus[IO] & 0xF0) | PIN_STATUS_DIGITAL_OUTPUT;\ }while(0) /// set pin as input with pullup mode