diff --git a/lib-ws28xxdmx/include/ws28xxdmxmulti.h b/lib-ws28xxdmx/include/ws28xxdmxmulti.h index 0e72e91d6..8dfb4bcd4 100644 --- a/lib-ws28xxdmx/include/ws28xxdmxmulti.h +++ b/lib-ws28xxdmx/include/ws28xxdmxmulti.h @@ -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(); @@ -116,6 +121,8 @@ class WS28xxDmxMulti final: public LightSet { m_pWS28xxMulti->Update(); + m_bNeedSync = false; + logic_analyzer::ch1_clear(); } @@ -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 diff --git a/opi_emac_artnet_pixel_dmx_multi/Makefile.H3 b/opi_emac_artnet_pixel_dmx_multi/Makefile.H3 index 4c861acc0..0383dd1d3 100644 --- a/opi_emac_artnet_pixel_dmx_multi/Makefile.H3 +++ b/opi_emac_artnet_pixel_dmx_multi/Makefile.H3 @@ -26,8 +26,6 @@ DEFINES+=ENABLE_HTTPD ENABLE_CONTENT DEFINES+=DISABLE_RTC -DEFINES+=CONFIG_CLIB_ASSERT_REBOOT - DEFINES+=NDEBUG LIBS=