From 721c62c50b83313c2094c77ac8337decd80c4d13 Mon Sep 17 00:00:00 2001 From: ZXGuesser Date: Tue, 26 Nov 2024 01:05:05 +0000 Subject: [PATCH] Fix bug with clearing update bit corrupting erase bit on carousels --- packetmag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packetmag.cpp b/packetmag.cpp index 262346f..86d7b27 100644 --- a/packetmag.cpp +++ b/packetmag.cpp @@ -209,7 +209,7 @@ Packet* PacketMag::GetPacket(Packet* p) if (_status & PAGESTATUS_C8_UPDATE) { // Clear update bit in stored page so that update flag is only transmitted once - _subpage->SetPageStatus(_status & ~PAGESTATUS_C8_UPDATE); + _subpage->SetPageStatus(_subpage->GetPageStatus() & ~PAGESTATUS_C8_UPDATE); // Also set the erase flag in output. This will allow left over rows in adaptive transmission to be cleared without leaving the erase flag set causing flickering. _status|=PAGESTATUS_C4_ERASEPAGE;