Skip to content

Commit 445de3b

Browse files
authored
Code refactoring
1 parent b202670 commit 445de3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

global/spi/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ unsigned char spi_init(SPI_Mode operation, SPI_Direction direction, SPI_Polarity
6666
SPCR |= ((0x01 & direction)<<5);
6767

6868
// Polarity and Phase of SCK and DATA
69-
SPCR |= ((0x04 & polarity)<<3) | ((0x02 & phase)<<2);
69+
SPCR |= ((0x01 & polarity)<<3) | ((0x01 & phase)<<2);
7070

7171
// SPI interrupt setup
7272
#ifdef SPI_SPIE

0 commit comments

Comments
 (0)