Skip to content

Commit 5ef3c2a

Browse files
authored
Merge pull request #495 from maidnl/SPI_clock_behavior
Update SPI stored setting also in begin()
2 parents 989073d + 292921b commit 5ef3c2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ void ArduinoSPI::begin()
139139
_sci_spi_ext_cfg.clk_div.mddr = 0;
140140

141141
configSpiSettings(DEFAULT_SPI_SETTINGS);
142+
_settings = DEFAULT_SPI_SETTINGS;
142143

143144
/* Configure the Interrupt Controller. */
144145
if (_is_sci)

0 commit comments

Comments
 (0)