diff options
| author | Ha Thach <[email protected]> | 2023-03-24 16:48:33 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-24 16:48:33 +0700 |
| commit | 59cbfbbdbef5d10782d3912925684d2a37fd0f30 (patch) | |
| tree | 44762f47c8008abf8c61b66087e0f93fc0fc4f3c /examples | |
| parent | f640163ee96f0a6a85b9a50f34c41cfb19f0c5bf (diff) | |
| parent | 033627ee4118b5015f1d31b88b8c4fcbad14292d (diff) | |
Merge pull request #1971 from MattMills/class_net_net_device_mac_address_shouldnt_be_consts
Update net_device.h to make MAC addresses not const.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/net_lwip_webserver/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/net_lwip_webserver/src/main.c b/examples/device/net_lwip_webserver/src/main.c index 88081ffe2..19a0eae9d 100644 --- a/examples/device/net_lwip_webserver/src/main.c +++ b/examples/device/net_lwip_webserver/src/main.c @@ -64,7 +64,7 @@ static struct pbuf *received_frame; /* this is used by this code, ./class/net/net_driver.c, and usb_descriptors.c */ /* ideally speaking, this should be generated from the hardware's unique ID (if available) */ /* it is suggested that the first byte is 0x02 to indicate a link-local address */ -const uint8_t tud_network_mac_address[6] = {0x02,0x02,0x84,0x6A,0x96,0x00}; +uint8_t tud_network_mac_address[6] = {0x02,0x02,0x84,0x6A,0x96,0x00}; /* network parameters of this MCU */ static const ip4_addr_t ipaddr = INIT_IP4(192, 168, 7, 1); |
