Skip to content

Commit ec03445

Browse files
committed
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.
1 parent b645b4a commit ec03445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utility/w5100.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ W5100Class W5100;
2525

2626
void W5100Class::init(void)
2727
{
28+
initSS();
29+
2830
writeMR(1<<RST);
2931
writeTMSR(0x55);
3032
writeRMSR(0x55);

0 commit comments

Comments
 (0)