mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
gpio: CapNormal -> CapAnalog
This commit is contained in:
parent
0002d02c28
commit
2d627aad67
6 changed files with 104 additions and 104 deletions
|
@ -35,7 +35,7 @@ func (io *gpioDriver) DigitalPin(key interface{}) (DigitalPin, error) {
|
|||
return nil, errors.New("gpio: digital io not supported on this host")
|
||||
}
|
||||
|
||||
pd, found := io.pinMap.Lookup(key, CapNormal)
|
||||
pd, found := io.pinMap.Lookup(key, CapDigital)
|
||||
if !found {
|
||||
return nil, fmt.Errorf("gpio: could not find pin matching %v", key)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue