diff --git a/gpiodriver_test.go b/gpiodriver_test.go index 254c4f1..cc15578 100644 --- a/gpiodriver_test.go +++ b/gpiodriver_test.go @@ -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 }