Remove unnecessary compiler workaround
This workaround isn't needed anymore: the feature has been implemented now.
Этот коммит содержится в:
родитель
7991243554
коммит
abaae5b90d
1 изменённых файлов: 2 добавлений и 3 удалений
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче