From 62a204b65c7ec2599cf53a285c6207ee11977717 Mon Sep 17 00:00:00 2001 From: George Date: Fri, 10 Mar 2023 11:53:40 +0100 Subject: [PATCH] setting of eth cs Does my "[Feature Request]: setting of eth cs #308". Tested on Arduino mega2560 with W5500 connected by wires - CS to 53. --- CommandStation-EX.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index 80d8b4e..7d47dbd 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -81,6 +81,9 @@ void setup() #endif // WIFI_ON #if ETHERNET_ON +#ifdef ETHERNET_CS + Ethernet.init (ETHERNET_CS); +#endif // ETHERNET_CS EthernetInterface::setup(); #endif // ETHERNET_ON