does this solve opensuse warning?

This commit is contained in:
iceman1001 2020-02-22 19:59:54 +01:00
commit d0241ed24f

View file

@ -726,7 +726,10 @@ static void PacketReceived(PacketCommandNG *packet) {
break; break;
} }
case CMD_LF_SAMPLING_SET_CONFIG: { 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; break;
} }
case CMD_LF_ACQ_RAW_ADC: { case CMD_LF_ACQ_RAW_ADC: {