From 660cdf92380cfceaf51a3529b6c854cf128ee188 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 11 Feb 2019 14:26:03 -0700 Subject: [PATCH] simple copy is all that is needed. --- QnetDVAP.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/QnetDVAP.cpp b/QnetDVAP.cpp index 6c44402..1e105fe 100644 --- a/QnetDVAP.cpp +++ b/QnetDVAP.cpp @@ -718,9 +718,7 @@ static void ReadDVAPThread() ok = false; } - memcpy(dsvt.hdr.flag, dr.frame.hdr.flag, 41); // copy the header, but... - memcpy(dsvt.hdr.rpt1, dr.frame.hdr.rpt1, 8); // swap r1 <--> r2 - memcpy(dsvt.hdr.rpt2, dr.frame.hdr.rpt2, 8); // Internet Labs DVAP Dongle Tech. Ref. V 1.01 has it backwards! + memcpy(dsvt.hdr.flag, dr.frame.hdr.flag, 41); // copy the header /* RPT1 must always be the repeater + module */ memcpy(dsvt.hdr.rpt1, RPTR_and_MOD, 8);