diff options
Diffstat (limited to 'libraries/Ethernet/utility')
-rwxr-xr-x | libraries/Ethernet/utility/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/Ethernet/utility/spi.h b/libraries/Ethernet/utility/spi.h index 0bb30ba..000705d 100755 --- a/libraries/Ethernet/utility/spi.h +++ b/libraries/Ethernet/utility/spi.h @@ -37,7 +37,7 @@ // PB4(MISO), PB3(MOSI), PB5(SCK), PB2(/SS) // CS=1, waiting for SPI start // SPI mode 0, 4MHz
#define SPI0_Init() DDRB |= SPI0_SS_BIT|SPI0_SCLK_BIT|SPI0_MOSI_BIT;\
- PORTB = SPI0_SS_BIT;\
+ PORTB |= SPI0_SS_BIT; PORTB &= ~(SPI0_SCLK_BIT|SPI0_MOSI_BIT);\
SPCR = 0x50
//-----------------------------------------------------------------------------
|