aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/utility
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-12-14 16:55:23 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-12-14 16:55:23 +0000
commitae9bcfb090b416adc183e17e92f3f4c91c5988df (patch)
tree53123830419c20beb24de7f4ffafc48fef34c2f3 /libraries/Ethernet/utility
parent1e421dd3933f40e87d859739634d97ff12986340 (diff)
Fixing bug that made the Ethernet library interfere with pins 8 and 9.
Adding a delay(1) to the WebServer example to work with browsers. Removing duplicate Print files from Ethernet library.
Diffstat (limited to 'libraries/Ethernet/utility')
-rwxr-xr-xlibraries/Ethernet/utility/spi.h2
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
//-----------------------------------------------------------------------------