From ae9bcfb090b416adc183e17e92f3f4c91c5988df Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 14 Dec 2008 16:55:23 +0000 Subject: 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. --- libraries/Ethernet/utility/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/Ethernet/utility/spi.h') 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 //----------------------------------------------------------------------------- -- cgit v1.2.3-18-g5258