gpio: added missing function in fakeDigitalPin

This commit is contained in:
SjB 2014-09-02 23:33:07 -04:00
parent 0fa1d1b61c
commit 1d0dd75f23
1 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,14 @@ func (p *fakeDigitalPin) Close() error {
return p.drv.Unregister(p.id)
}
func (p *fakeDigitalPin) Watch(edge Edge, handler func(DigitalPin)) error {
return nil
}
func (p *fakeDigitalPin) StopWatching() error {
return nil
}
func newFakeDigitalPin(pd *PinDesc, drv GPIODriver) DigitalPin {
return &fakeDigitalPin{id: pd.ID, n: pd.DigitalLogical, drv: drv}
}