Skip to content

Commit 501da92

Browse files
Added a line in SPI.cpp to default the bitOrder to MSBFIRST
1 parent c0fd4e3 commit 501da92

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

STM32F1/libraries/SPI/src/SPI.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ SPIClass::SPIClass(uint32 spi_num) {
110110
default:
111111
ASSERT(0);
112112
}
113+
114+
bitOrder=MSBFIRST;
115+
//pinMode(BOARD_SPI_DEFAULT_SS,OUTPUT);
116+
113117

114-
//pinMode(BOARD_SPI_DEFAULT_SS,OUTPUT);
115118
}
116119

117120
/*

0 commit comments

Comments
 (0)