From a0cdd6b4ed9c44429b471ce913b4329027ca0b15 Mon Sep 17 00:00:00 2001 From: Scott Yoder Date: Sun, 9 Feb 2020 16:21:49 -0500 Subject: [PATCH] fix typo in pin configuration options for NRF --- src/machine/machine_nrf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machine_nrf.go b/src/machine/machine_nrf.go index 0946356b..5a5047f7 100644 --- a/src/machine/machine_nrf.go +++ b/src/machine/machine_nrf.go @@ -17,7 +17,7 @@ type PinMode uint8 const ( PinInput PinMode = (nrf.GPIO_PIN_CNF_DIR_Input << nrf.GPIO_PIN_CNF_DIR_Pos) | (nrf.GPIO_PIN_CNF_INPUT_Connect << nrf.GPIO_PIN_CNF_INPUT_Pos) PinInputPullup PinMode = PinInput | (nrf.GPIO_PIN_CNF_PULL_Pullup << nrf.GPIO_PIN_CNF_PULL_Pos) - PinInputPulldown PinMode = PinOutput | (nrf.GPIO_PIN_CNF_PULL_Pulldown << nrf.GPIO_PIN_CNF_PULL_Pos) + PinInputPulldown PinMode = PinInput | (nrf.GPIO_PIN_CNF_PULL_Pulldown << nrf.GPIO_PIN_CNF_PULL_Pos) PinOutput PinMode = (nrf.GPIO_PIN_CNF_DIR_Output << nrf.GPIO_PIN_CNF_DIR_Pos) | (nrf.GPIO_PIN_CNF_INPUT_Disconnect << nrf.GPIO_PIN_CNF_INPUT_Pos) )