mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +01:00
spi: fix for breaking build
This commit is contained in:
parent
32c9a96af5
commit
5965ddf789
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user