Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket lwip-eth lwip-sys lwip
Fork of EthernetInterface by
Revision 33:c21b055c45b8, committed 2013-08-19
- Comitter:
- bogdanm
- Date:
- Mon Aug 19 18:39:15 2013 +0300
- Parent:
- 32:40640efbfcae
- Child:
- 34:4aa9e92d1a58
- Commit message:
- Sync with official mbed library release 66
Changed in this revision
| EthernetInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EthernetInterface.cpp Tue Jun 04 16:00:43 2013 +0100
+++ b/EthernetInterface.cpp Mon Aug 19 18:39:15 2013 +0300
@@ -69,9 +69,14 @@
}
static void set_mac_address(void) {
+#if (MBED_MAC_ADDRESS_SUM != MBED_MAC_ADDR_INTERFACE)
+ snprintf(mac_addr, 19, "%02x:%02x:%02x:%02x:%02x:%02x", MBED_MAC_ADDR_0, MBED_MAC_ADDR_1, MBED_MAC_ADDR_2,
+ MBED_MAC_ADDR_3, MBED_MAC_ADDR_4, MBED_MAC_ADDR_5);
+#else
char mac[6];
mbed_mac_address(mac);
snprintf(mac_addr, 19, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
+#endif
}
int EthernetInterface::init() {
