We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d6544 commit 38b7743Copy full SHA for 38b7743
sources/leddevice/dev_net/LedDeviceUdpRaw.cpp
@@ -25,5 +25,8 @@ int LedDeviceUdpRaw::write(const std::vector<ColorRgb>& ledValues)
25
{
26
const uint8_t* dataPtr = reinterpret_cast<const uint8_t*>(ledValues.data());
27
28
+ if (ledValues.size() != _ledCount)
29
+ setLedCount(ledValues.size());
30
+
31
return writeBytes(_ledRGBCount, dataPtr);
32
}
sources/leddevice/dev_net/LedDeviceWled.cpp
@@ -309,5 +309,8 @@ int LedDeviceWled::write(const std::vector<ColorRgb>& ledValues)
309
310
311
312
313
314
315
316
0 commit comments