1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Set mode to SPI_CONTINUE for first byte transfer in SPI.transfer16(...)

Update to #4081
This commit is contained in:
Sandeep Mistry 2015-11-05 10:02:50 -05:00
parent d3b7afd42e
commit 5be4466fd7

View File

@ -203,10 +203,10 @@ uint16_t SPIClass::transfer16(byte _pin, uint16_t _data, SPITransferMode _mode)
t.val = _data;
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);
} else {
t.msb = transfer(_pin, t.msb, _mode);
t.msb = transfer(_pin, t.msb, SPI_CONTINUE);
t.lsb = transfer(_pin, t.lsb, _mode);
}