summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mills <[email protected]>2023-03-22 07:30:46 -0600
committerMatt Mills <[email protected]>2023-03-22 07:30:46 -0600
commit033627ee4118b5015f1d31b88b8c4fcbad14292d (patch)
treefad4c0105da7763a97023337c6c36eda0f4d41a9
parent4274cab3950cfa30b387bab7d388b6a4b8480edb (diff)
Remove const from tud_network_mac_address in example and test files
-rw-r--r--examples/device/net_lwip_webserver/src/main.c2
-rw-r--r--test/fuzz/net_fuzz.cc2
2 files changed, 2 insertions, 2 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);
diff --git a/test/fuzz/net_fuzz.cc b/test/fuzz/net_fuzz.cc
index 3158e74ef..63cd1ac98 100644
--- a/test/fuzz/net_fuzz.cc
+++ b/test/fuzz/net_fuzz.cc
@@ -67,7 +67,7 @@ void tud_network_init_cb(void) {
// client must provide this: 48-bit MAC address
// TODO removed later since it is not part of tinyusb stack
-const uint8_t tud_network_mac_address[6] = {0};
+uint8_t tud_network_mac_address[6] = {0};
//------------- NCM -------------//