Skip to content

Commit

Permalink
Fix for Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvught committed Nov 17, 2024
1 parent 950cce5 commit ed4468e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions lib-ws28xxdmx/include/ws28xxdmxmulti.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ class WS28xxDmxMulti final: public LightSet {
logic_analyzer::ch2_set();

SetData(nPortIndex, lightset::Data::Backup(nPortIndex), lightset::Data::GetLength(nPortIndex));
m_bNeedSync = true;

logic_analyzer::ch2_clear();
}

void Sync() override {
if (!m_bNeedSync) {
return;
}

logic_analyzer::ch1_set();
logic_analyzer::ch3_set();

Expand All @@ -116,6 +121,8 @@ class WS28xxDmxMulti final: public LightSet {

m_pWS28xxMulti->Update();

m_bNeedSync = false;

logic_analyzer::ch1_clear();
}

Expand Down Expand Up @@ -154,6 +161,7 @@ class WS28xxDmxMulti final: public LightSet {

uint32_t m_bIsStarted { 0 };
bool m_bBlackout { false };
bool m_bNeedSync { false };
};

#pragma GCC pop_options
Expand Down
2 changes: 0 additions & 2 deletions opi_emac_artnet_pixel_dmx_multi/Makefile.H3
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ DEFINES+=ENABLE_HTTPD ENABLE_CONTENT

DEFINES+=DISABLE_RTC

DEFINES+=CONFIG_CLIB_ASSERT_REBOOT

DEFINES+=NDEBUG

LIBS=
Expand Down

0 comments on commit ed4468e

Please sign in to comment.