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

build: fixed broken tests

This commit is contained in:
Gavin Cabbage 2015-08-29 00:53:34 -04:00
parent 2e6bd46354
commit afa49bb2bc
2 changed files with 2 additions and 1 deletions

View file

@ -131,6 +131,7 @@ type mockI2CBus struct {
closed bool
}
func (bus *mockI2CBus) ReadBytes(addr byte, num int) ([]byte, error) { return []byte{0x00}, nil }
func (bus *mockI2CBus) ReadByte(addr byte) (byte, error) { return 0x00, nil }
func (bus *mockI2CBus) WriteBytes(addr byte, value []byte) error { return nil }
func (bus *mockI2CBus) ReadFromReg(addr, reg byte, value []byte) error { return nil }