From 820ec9a868c9d978e65a397d7f25e8be3bd82f10 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Fri, 7 Jun 2024 12:39:21 +0300 Subject: [PATCH] Minor changes --- main/zh_espnow_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/zh_espnow_switch.c b/main/zh_espnow_switch.c index 7322034..de7c526 100644 --- a/main/zh_espnow_switch.c +++ b/main/zh_espnow_switch.c @@ -553,7 +553,7 @@ void zh_espnow_event_handler(void *arg, esp_event_base_t event_base, int32_t eve if (switch_config->gateway_is_available == false) { switch_config->gateway_is_available = true; - memcpy(&switch_config->gateway_mac, &recv_data->mac_addr, 6); + memcpy(switch_config->gateway_mac, recv_data->mac_addr, 6); zh_send_switch_hardware_config_message(switch_config); if (switch_config->hardware_config.relay_pin != ZH_NOT_USED) {