Skip to content

Commit afc1e01

Browse files
committed
Changed initialization order of radio/eth to avoid problems.
1 parent d6922e7 commit afc1e01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ int inputPos = 0;
8383

8484
void setup()
8585
{
86-
// Initialize gateway at maximum PA level, channel 70 and callback for write operations
87-
gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);
88-
8986
Ethernet.begin(mac, myIp);
9087

9188
// give the Ethernet interface a second to initialize
9289
delay(1000);
9390

91+
// Initialize gateway at maximum PA level, channel 70 and callback for write operations
92+
gw.begin(RF24_PA_LEVEL_GW, RF24_CHANNEL, RF24_DATARATE, writeEthernet);
93+
9494
// start listening for clients
9595
server.begin();
9696
}

0 commit comments

Comments
 (0)