aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF5
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/NRF5')
-rw-r--r--os/hal/ports/NRF5/LLD/hal_pal_lld.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/NRF5/LLD/hal_pal_lld.h b/os/hal/ports/NRF5/LLD/hal_pal_lld.h
index 9eb333d..34caa7e 100644
--- a/os/hal/ports/NRF5/LLD/hal_pal_lld.h
+++ b/os/hal/ports/NRF5/LLD/hal_pal_lld.h
@@ -305,7 +305,7 @@ typedef NRF_GPIO_Type *ioportid_t;
*/
#define pal_lld_togglepad(port, pad) \
do { \
- uint8_t bit = (IOPORT1->IN >> (pad)) & 1; \
+ uint8_t bit = (IOPORT1->OUT >> (pad)) & 1; \
if (bit) \
IOPORT1->OUTCLR = 1 << (pad); \
else \