From eb47701c9f86b6c5bc7c2f8dc4b252ef95945af7 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 3 Aug 2010 13:02:02 +0000 Subject: [PATCH] Fixing ethernet library on Mega. Because the Mega uses a different pin for SS of the W5100, the SPI library wasn't setting it as an output. It was only setting the hardware SS pin of the ATmega1280, which is elsewhere on the board. Adding initSS() to W5100.init() fixed it. --- libraries/Ethernet/utility/w5100.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/Ethernet/utility/w5100.cpp b/libraries/Ethernet/utility/w5100.cpp index f4b07f512..06442268c 100644 --- a/libraries/Ethernet/utility/w5100.cpp +++ b/libraries/Ethernet/utility/w5100.cpp @@ -25,6 +25,8 @@ W5100Class W5100; void W5100Class::init(void) { + initSS(); + writeMR(1<