Skip to content

Commit e49556c

Browse files
committed
Ensure that the SPI is configured with the default SPI settings upon calling SPI.begin().
It will be necessary to refactor the function SPI.beginTransaction() in the future, to have a dedicated function of configuring the SPI hardware.
1 parent aa07f34 commit e49556c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SPI/SPI.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void ArduinoSPI::begin()
126126
}
127127
initialized = true;
128128
}
129+
130+
beginTransaction(DEFAULT_SPI_SETTINGS);
129131
}
130132

131133
void ArduinoSPI::end() {

0 commit comments

Comments
 (0)