mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
Remove unnecessary compiler workaround
This workaround isn't needed anymore: the feature has been implemented now.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user