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:
parent
32c9a96af5
commit
5965ddf789
@ -202,11 +202,11 @@ func (b *spiBus) ReceiveData(len int) ([]uint8, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var data [len]uint8
|
data := make([]uint8, len)
|
||||||
if err := b.TransferAndRecieveData(data[:]); err != nil {
|
if err := b.TransferAndRecieveData(data); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return data[:], nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *spiBus) TransferAndReceiveByte(data byte) (byte, error) {
|
func (b *spiBus) TransferAndReceiveByte(data byte) (byte, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user