Skip to content

Commit a76a67c

Browse files
committed
improved dump conditions
1 parent 8ddd9e9 commit a76a67c

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

include/DMDUtil/DMD.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ class DMDUTILAPI DMD
7979

8080
enum class Mode
8181
{
82-
Unknown, // int 0
83-
Data, // int 1
84-
RGB24, // int 2, RGB888
85-
RGB16, // int 3, RGB565
86-
AlphaNumeric, // int 4
87-
SerumV1, // int 5
88-
SerumV2_32, // int 6
89-
SerumV2_32_64, // int 7
90-
SerumV2_64, // int 8
91-
SerumV2_64_32, // int 9
92-
NotColorized, // int 10
82+
Unknown = 0,
83+
Data = 1,
84+
RGB24 = 2, // RGB888
85+
RGB16 = 3, // RGB565
86+
AlphaNumeric = 4,
87+
SerumV1 = 5,
88+
SerumV2_32 = 6,
89+
SerumV2_32_64 = 7,
90+
SerumV2_64 = 8,
91+
SerumV2_64_32 = 9,
92+
NotColorized = 10,
9393
};
9494

9595
bool IsSerumMode(Mode mode)

src/DMD.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,11 @@ void DMD::DumpDMDTxtThread()
14901490
if (++bufferPosition >= DMDUTIL_FRAME_BUFFER_SIZE) bufferPosition = 0;
14911491

14921492
if (m_pUpdateBufferQueue[bufferPosition]->depth <= 4 && m_pUpdateBufferQueue[bufferPosition]->hasData &&
1493-
(m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data ||
1493+
((m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data && !dumpNotColorizedFrames) ||
14941494
(m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized && dumpNotColorizedFrames)))
14951495
{
1496+
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: hanlde frame, mode %d", m_pUpdateBufferQueue[bufferPosition]->mode);
1497+
14961498
bool update = false;
14971499
if (strcmp(m_romName, name) != 0)
14981500
{
@@ -1547,8 +1549,7 @@ void DMD::DumpDMDTxtThread()
15471549

15481550
if (f)
15491551
{
1550-
if (passed[0] > 0 &&
1551-
(!dumpNotColorizedFrames || m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized))
1552+
if (passed[0] > 0)
15521553
{
15531554
bool dump = true;
15541555

0 commit comments

Comments
 (0)