From 44e557594b1baa91dba1098a23b2846ee0e5fbd5 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 27 Feb 2017 20:55:30 -0500 Subject: [PATCH] fixed calculation of the_end in ReadDVAPThread() --- dvap_rptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvap_rptr.cpp b/dvap_rptr.cpp index 2f3bfde..882a4e5 100644 --- a/dvap_rptr.cpp +++ b/dvap_rptr.cpp @@ -1187,7 +1187,7 @@ static void ReadDVAPThread() } else if (reply == RT_DAT) { /* have we already received a header ? */ if (dvap_busy) { - the_end = ((dr.frame.hdr.flag[0] & 0x40) == 0x40); + the_end = ((dr.frame.framepos & 0x40) == 0x40); net_buf.nothing1[0] = ((C_COUNTER >> 8) & 0xff); net_buf.nothing1[1] = (unsigned char)(C_COUNTER & 0xff);