mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
Set mode to SPI_CONTINUE for first byte transfer in SPI.transfer16(...)
Update to #4081
This commit is contained in:
parent
d3b7afd42e
commit
5be4466fd7
@ -203,10 +203,10 @@ uint16_t SPIClass::transfer16(byte _pin, uint16_t _data, SPITransferMode _mode)
|
|||||||
t.val = _data;
|
t.val = _data;
|
||||||
|
|
||||||
if (bitOrder[ch] == LSBFIRST) {
|
if (bitOrder[ch] == LSBFIRST) {
|
||||||
t.lsb = transfer(_pin, t.lsb, _mode);
|
t.lsb = transfer(_pin, t.lsb, SPI_CONTINUE);
|
||||||
t.msb = transfer(_pin, t.msb, _mode);
|
t.msb = transfer(_pin, t.msb, _mode);
|
||||||
} else {
|
} else {
|
||||||
t.msb = transfer(_pin, t.msb, _mode);
|
t.msb = transfer(_pin, t.msb, SPI_CONTINUE);
|
||||||
t.lsb = transfer(_pin, t.lsb, _mode);
|
t.lsb = transfer(_pin, t.lsb, _mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user