(PrescalerMask & ~SPI_USE_DOUBLESPEED));\r
\r
if (PrescalerMask & SPI_USE_DOUBLESPEED)\r
- SPSR = (1 << SPI2X);\r
+ SPSR |= (1 << SPI2X);\r
+ else\r
+ SPSR &= ~(1 << SPI2X);\r
}\r
\r
/** Sends and receives a byte through the SPI interface, blocking until the transfer is complete.\r