mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 04:19:04 +00:00
machine/hifive1b: remove extra println left in by mistake
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -48,7 +48,6 @@ func (p Pin) Set(high bool) {
|
|||||||
// Get returns the current value of a GPIO pin.
|
// Get returns the current value of a GPIO pin.
|
||||||
func (p Pin) Get() bool {
|
func (p Pin) Get() bool {
|
||||||
val := sifive.GPIO0.VALUE.Get() & (1 << uint8(p))
|
val := sifive.GPIO0.VALUE.Get() & (1 << uint8(p))
|
||||||
println(sifive.GPIO0.VALUE.Get())
|
|
||||||
return (val > 0)
|
return (val > 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user