From abaae5b90d952e366ca5d264df6859ee3fb0b411 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 29 Aug 2018 20:45:50 +0200 Subject: [PATCH] Remove unnecessary compiler workaround This workaround isn't needed anymore: the feature has been implemented now. --- src/machine/machine_nrf.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/machine/machine_nrf.go b/src/machine/machine_nrf.go index b73a1a21..013fdd3c 100644 --- a/src/machine/machine_nrf.go +++ b/src/machine/machine_nrf.go @@ -33,10 +33,9 @@ func (p GPIO) Configure(config GPIOConfig) { } func (p GPIO) Set(high bool) { - // TODO: compiler limitation: both operands must be the same LLVM type if high { - nrf.P0.OUTSET = 1 << uint32(p.Pin) + nrf.P0.OUTSET = 1 << p.Pin } else { - nrf.P0.OUTCLR = 1 << uint32(p.Pin) + nrf.P0.OUTCLR = 1 << p.Pin } }