1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

spi: fix for breaking build

This commit is contained in:
kunalpowar 2014-05-22 03:03:22 +05:30
parent 32c9a96af5
commit 5965ddf789

View File

@ -202,11 +202,11 @@ func (b *spiBus) ReceiveData(len int) ([]uint8, error) {
return nil, err
}
var data [len]uint8
if err := b.TransferAndRecieveData(data[:]); err != nil {
data := make([]uint8, len)
if err := b.TransferAndRecieveData(data); err != nil {
return nil, err
}
return data[:], nil
return data, nil
}
func (b *spiBus) TransferAndReceiveByte(data byte) (byte, error) {