1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

gpio: CapNormal -> CapAnalog

This commit is contained in:
Karan Misra 2014-03-23 14:11:09 +05:30
parent 0002d02c28
commit 2d627aad67
6 changed files with 104 additions and 104 deletions

View file

@ -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)
}