We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbceb1e + 1c26024 commit fbb44b6Copy full SHA for fbb44b6
libraries/SPI/SPI.cpp
@@ -383,7 +383,7 @@ void ArduinoSPI::configSpi(arduino::SPISettings const & settings)
383
spcmd0 |= (uint32_t) bit_order << 12;
384
385
/* Configure the Bit Rate Division Setting */
386
- spcmd0 &= !(((uint32_t)0xFF) << 2);
+ spcmd0 &= ~(((uint32_t) 3) << 2);
387
spcmd0 |= (uint32_t) spck_div.brdv << 2;
388
389
/* Update settings. */
0 commit comments