Remove unnecessary compiler workaround

This workaround isn't needed anymore: the feature has been implemented
now.
This commit is contained in:
Ayke van Laethem
2018-08-29 20:45:50 +02:00
parent 7991243554
commit abaae5b90d
+2 -3
View File
@@ -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
}
}