Skip to content

Commit 6bdd285

Browse files
committed
Correct default SPI bit ordering. Should be MSBFIRST
1 parent 0fe011d commit 6bdd285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sfe_bus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ bool SfeSPI::init(uint8_t cs, bool bInit)
251251
{
252252

253253
//If the transaction settings are not provided by the user they are built here.
254-
SPISettings spiSettings = SPISettings(3000000, LSBFIRST, SPI_MODE3);
254+
SPISettings spiSettings = SPISettings(3000000, MSBFIRST, SPI_MODE3);
255255

256256
//In addition of the port is not provided by the user, it defaults to SPI here.
257257
return init(SPI, spiSettings, cs, bInit);

0 commit comments

Comments
 (0)