From cd6b2d77e496a0589f38937e66c6c6d7d769f129 Mon Sep 17 00:00:00 2001 From: ZXGuesser Date: Sun, 14 Jan 2018 23:06:41 +0000 Subject: [PATCH] only clear EVENT_FIELD once committed to transmitting the header --- packetmag.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packetmag.cpp b/packetmag.cpp index 5bff2c2..61d07df 100644 --- a/packetmag.cpp +++ b/packetmag.cpp @@ -135,7 +135,6 @@ Packet* PacketMag::GetPacket(Packet* p) return nullptr; } } else { - ClearEvent(EVENT_FIELD); // This will suspend all packets until the next field. _page=_carousel->nextCarousel(); // The next carousel page (if there is one) // But before that, do some housekeeping @@ -249,6 +248,8 @@ Packet* PacketMag::GetPacket(Packet* p) return nullptr; } + ClearEvent(EVENT_FIELD); // This will suspend all packets until the next field. + // clear a flag we use to prevent duplicated X/28/0 packets _hasX28Region = false;