Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jul 2, 2024
1 parent 628ecbd commit 274a1df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ void DMD::ZeDMDThread()
{
bufferPosition = GetNextBufferQueuePosition(bufferPosition, updateBufferQueuePosition);

Log(DMDUtil_LogLevel_DEBUG, "ZeDMD: mode=%d, width=%d", m_pUpdateBufferQueue[bufferPosition]->mode, m_pZeDMD->GetWidth());
if (m_pSerum && !IsSerumMode(m_pUpdateBufferQueue[bufferPosition]->mode)) continue;

// Note: libzedmd has its own update detection.
Expand All @@ -645,7 +646,6 @@ void DMD::ZeDMDThread()
m_pUpdateBufferQueue[bufferPosition]->r, m_pUpdateBufferQueue[bufferPosition]->g,
m_pUpdateBufferQueue[bufferPosition]->b);
}

if (m_pUpdateBufferQueue[bufferPosition]->mode == Mode::RGB24)
{
// ZeDMD HD supports 256 * 64 pixels.
Expand All @@ -671,6 +671,7 @@ void DMD::ZeDMDThread()

if (IsSerumV2Mode(m_pUpdateBufferQueue[bufferPosition]->mode))
{
Log(DMDUtil_LogLevel_DEBUG, "ZeDMD: Render");
m_pZeDMD->RenderRgb565(m_pUpdateBufferQueue[bufferPosition]->segData);
}
else
Expand Down

0 comments on commit 274a1df

Please sign in to comment.