From 5f1af520846dd9e260e18849e6c55f11e4db7475 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 13 Jan 2024 17:59:05 +0100 Subject: [PATCH] adv_bearer: fix memcpy --- src/mesh/adv_bearer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/adv_bearer.c b/src/mesh/adv_bearer.c index d112365af..ce2fc38a7 100644 --- a/src/mesh/adv_bearer.c +++ b/src/mesh/adv_bearer.c @@ -389,7 +389,7 @@ void adv_bearer_advertisements_set_params(uint16_t adv_int_min, uint16_t adv_int gap_adv_int_ms = gap_adv_int_min * 625 / 1000; gap_adv_type = adv_type; gap_direct_address_typ = direct_address_typ; - (void)memcpy(gap_direct_address, &direct_address, 6); + (void)memcpy(gap_direct_address, direct_address, 6); gap_channel_map = channel_map; gap_filter_policy = filter_policy;