Skip to content

Commit 8d3d2de

Browse files
fixed ntruchsess#113 - Leonardo Problem (SS does not exist)
1 parent 13ab35c commit 8d3d2de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utility/Enc28J60Network.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@
2727

2828
#include "mempool.h"
2929

30+
#ifdef __AVR_ATmega32U4__
31+
#define ENC28J60_CONTROL_CS 10
32+
#else
3033
#define ENC28J60_CONTROL_CS SS
34+
#endif
35+
3136
#define SPI_MOSI MOSI
3237
#define SPI_MISO MISO
3338
#define SPI_SCK SCK
34-
#define SPI_SS SS
39+
#define SPI_SS ENC28J60_CONTROL_CS
3540

3641
#define UIP_RECEIVEBUFFERHANDLE 0xff
3742

0 commit comments

Comments
 (0)