Adjusted Initialization of MAC address
Fork of WIZnetInterface by
Diff: arch/ext/W5500.cpp
- Revision:
- 30:b67bcc6ee0bb
- Parent:
- 28:200e63e513a8
--- a/arch/ext/W5500.cpp Tue Nov 17 06:35:55 2015 +0000
+++ b/arch/ext/W5500.cpp Thu Jun 29 18:58:37 2017 +0000
@@ -167,9 +167,8 @@
reset_pin = 1;
wait_ms(400); // 400ms (w5500)
#if defined(USE_WIZ550IO_MAC)
- // write MAC address inside the WZTOE MAC address register
- reg_wr_mac(SHAR, mac);
#endif
+
// set RX and TX buffer size
#if 0
for (int socket = 0; socket < MAX_SOCK_NUM; socket++) {
@@ -177,6 +176,10 @@
sreg<uint8_t>(socket, Sn_TXBUF_SIZE, 2);
}
#endif
+
+ // write MAC address inside the WZTOE MAC address register
+ reg_wr_mac(SHAR, mac);
+
}
