Fix typo in define MAX_MAC_ADDR_LEN

This commit is contained in:
2023-11-22 22:31:44 +01:00
parent 0ff34a233e
commit 43fc97c109
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
#define MAX_NAME_SIZE 20
#define MAX_REPLY_SIZE 120
#define MAX_MAX_ADDR_LEN 18
#define MAX_MAC_ADDR_LEN 18
#define MAX_EXTRA_REPLY_CHARS 27

View File

@@ -116,7 +116,7 @@ static uint8_t udp_broadcast_set_owner_details_reply(const char* reply) {
static void udp_broadcast_format_reply(void) {
size_t reply_len = 0;
char mac_addr_str[MAX_MAX_ADDR_LEN];
char mac_addr_str[MAX_MAC_ADDR_LEN];
char reply_buf[MAX_REPLY_SIZE];
reply_len = MAX_EXTRA_REPLY_CHARS + sizeof(mac_addr_str) + sizeof(udp_owner.surname) + sizeof(udp_owner.name);