Skip to content

Commit 0fa5cae

Browse files
aentingergiulcioffi
authored andcommitted
Bugfix: Ensure that the initial values of member variable 'settings' is different from the ones provided via global constant 'DEFAULT_SPI_SETTINGS' because otherwise SPI won't be configured within the 'config' method called within 'begin'
1 parent 458c192 commit 0fa5cae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/SPI/SPI.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static inline SercomSpiClockMode getDataMode(SPISettings& settings) {
4949
}
5050

5151
SPIClass::SPIClass(SERCOM *p_sercom, uint8_t uc_pinMISO, uint8_t uc_pinSCK, uint8_t uc_pinMOSI, SercomSpiTXPad PadTx, SercomRXPad PadRx)
52+
: settings(0, MSBFIRST, SPI_MODE0)
5253
{
5354
initialized = false;
5455
assert(p_sercom != NULL);

0 commit comments

Comments
 (0)