mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
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.
This commit is contained in:
parent
f5bb3ab541
commit
eb47701c9f
@ -25,6 +25,8 @@ W5100Class W5100;
|
||||
|
||||
void W5100Class::init(void)
|
||||
{
|
||||
initSS();
|
||||
|
||||
writeMR(1<<RST);
|
||||
writeTMSR(0x55);
|
||||
writeRMSR(0x55);
|
||||
|
Loading…
x
Reference in New Issue
Block a user