mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +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) {
|
func (p GPIO) Set(high bool) {
|
||||||
// TODO: compiler limitation: both operands must be the same LLVM type
|
|
||||||
if high {
|
if high {
|
||||||
nrf.P0.OUTSET = 1 << uint32(p.Pin)
|
nrf.P0.OUTSET = 1 << p.Pin
|
||||||
} else {
|
} else {
|
||||||
nrf.P0.OUTCLR = 1 << uint32(p.Pin)
|
nrf.P0.OUTCLR = 1 << p.Pin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user