From d63d359c14912a4b941168e8225cf662935c74af Mon Sep 17 00:00:00 2001 From: tharexde Date: Mon, 7 Dec 2020 20:31:27 +0100 Subject: [PATCH] fixed initialization (memset instead of memcpy) --- armsrc/em4x50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/em4x50.c b/armsrc/em4x50.c index f63c03bbc..620083a32 100644 --- a/armsrc/em4x50.c +++ b/armsrc/em4x50.c @@ -183,7 +183,7 @@ static bool get_signalproperties(void) { uint8_t sample_max_mean = 0; uint8_t sample_max[no_periods]; uint32_t sample_max_sum = 0; - memcpy(sample_max, 0x00, sizeof(sample_max)); + memset(sample_max, 0x00, sizeof(sample_max)); LED_A_ON();