mirror of
https://github.com/kidoman/embd
synced 2024-12-22 12:50:19 +01:00
gpio: fix failing tests
This commit is contained in:
parent
0c193071ed
commit
18c574b7c8
@ -1,6 +1,9 @@
|
||||
package embd
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
type fakeDigitalPin struct {
|
||||
n int
|
||||
@ -22,6 +25,10 @@ func (*fakeDigitalPin) Write(val int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*fakeDigitalPin) TimePulse(state int) (time.Duration, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (*fakeDigitalPin) ActiveLow(b bool) error {
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user