diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h index 3858acabced059a91dd67db583032edd9b94572e..df69e8214ec2b20898ba114df4c9b10a81d13dd0 100644 --- a/LUFA/Drivers/Peripheral/SPI.h +++ b/LUFA/Drivers/Peripheral/SPI.h @@ -121,9 +121,9 @@ */ static inline void SPI_Init(const uint8_t SPIOptions) { - DDRB |= ((1 << 1) | (1 << 2)); - DDRB &= ((1 << 0) | (1 << 3)); - PORTB |= ((1 << 0) | (1 << 3)); + DDRB |= ((1 << 1) | (1 << 2)); + DDRB &= ~((1 << 0) | (1 << 3)); + PORTB |= ((1 << 0) | (1 << 3)); SPCR = ((1 << SPE) | SPIOptions);