We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e82b74e + bda2125 commit 6ad7caeCopy full SHA for 6ad7cae
libraries/SPI/SPI.cpp
@@ -246,13 +246,13 @@ uint16_t SPIClass::transfer16(uint16_t data) {
246
in.val = data;
247
248
if((SPI1C & (SPICWBO | SPICRBO))) {
249
- //MSBFIRST
250
- out.msb = transfer(in.msb);
251
- out.lsb = transfer(in.lsb);
252
- } else {
253
//LSBFIRST
254
out.lsb = transfer(in.lsb);
255
out.msb = transfer(in.msb);
+ } else {
+ //MSBFIRST
+ out.msb = transfer(in.msb);
+ out.lsb = transfer(in.lsb);
256
}
257
return out.val;
258
0 commit comments