From d0241ed24f4c5f704973867d00fac583227995df Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 22 Feb 2020 19:59:54 +0100 Subject: [PATCH] does this solve opensuse warning? --- armsrc/appmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 15d939a35..415e03291 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -726,7 +726,10 @@ static void PacketReceived(PacketCommandNG *packet) { break; } case CMD_LF_SAMPLING_SET_CONFIG: { - setSamplingConfig((sample_config *) packet->data.asBytes); + sample_config c; + memcpy(&c, packet->data.asBytes, sizeof(sample_config)); + setSamplingConfig(&c); +// setSamplingConfig((sample_config *) packet->data.asBytes); break; } case CMD_LF_ACQ_RAW_ADC: {