Skip to content

Commit aa07f34

Browse files
committed
Rename to DEFAULT_SPI_SETTINGS to prevent accidential overwriting and to ensure the semantic of the variable is clear.
1 parent 356de99 commit aa07f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ArduinoSPI : public SPIClass
5959
private:
6060
void enableSciSpiIrqs();
6161

62-
arduino::SPISettings settings = arduino::SPISettings(1000000, MSBFIRST, arduino::SPI_MODE0);
62+
arduino::SPISettings const DEFAULT_SPI_SETTINGS = arduino::SPISettings(1000000, MSBFIRST, arduino::SPI_MODE0);
6363
static uint8_t initialized;
6464
static uint8_t interruptMode; // 0=none, 1=mask, 2=global
6565
static uint8_t interruptMask; // which interrupts to mask

0 commit comments

Comments
 (0)