1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-04 20:37:46 +02:00

changed ReadBytes to get file size from stat

This commit is contained in:
Gavin Cabbage 2015-10-10 23:23:40 -04:00 committed by Max Matveev
parent a453ad3b0f
commit 5e7af40a61
3 changed files with 12 additions and 4 deletions

View file

@ -131,7 +131,7 @@ type mockI2CBus struct {
closed bool
}
func (bus *mockI2CBus) ReadBytes(addr byte, num int) ([]byte, error) { return []byte{0x00}, nil }
func (bus *mockI2CBus) ReadBytes(addr byte) ([]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 }