Skip to content

Commit

Permalink
SIGNALDuino.ino - fix support for MapleCul LAN
Browse files Browse the repository at this point in the history
für MapleCul LAN (MapeCUN) ist eine gepatchte Ethernet Lib notwendig
arduino-libraries/Ethernet#134
arduino-libraries/Ethernet@37927e7
  • Loading branch information
Ralf9 committed May 22, 2021
1 parent 4048ba2 commit 20c75f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SIGNALDuino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "compile_config.h"

#define PROGNAME " SIGNALduinoAdv "
#define PROGVERS "4.1.2-dev210520"
#define PROGVERS "4.1.2-dev210522"
#define VERSION_1 0x41
#define VERSION_2 0x2d

Expand Down Expand Up @@ -132,7 +132,9 @@ Callee rssiCallee;
#ifdef LAN_WIZ
#include <SPI.h>
#include <Ethernet.h>

#ifdef MAPLE_CUL
SPIClass SPI_1(28, 29, 30);
#endif
EthernetServer server = EthernetServer(23);
EthernetClient client;
#endif
Expand Down Expand Up @@ -342,8 +344,7 @@ void setup() {
delayMicroseconds(500);
digitalWrite(PIN_WIZ_RST, HIGH);
#ifdef MAPLE_CUL
SPIClass SPI_1(28, 29, 30);
Ethernet.init(31);
Ethernet.init(SPI_1, 31);
#endif
if (ip[3] != 0) {
Ethernet.begin(mac, ip, gateway, netmask);
Expand Down

0 comments on commit 20c75f7

Please sign in to comment.