Skip to content

Commit

Permalink
only clear EVENT_FIELD once committed to transmitting the header
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXGuesser committed Jan 14, 2018
1 parent 0cb2074 commit cd6b2d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packetmag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit cd6b2d7

Please sign in to comment.