diff --git a/libsrc/leddevice/LedDeviceLpd8806.cpp b/libsrc/leddevice/LedDeviceLpd8806.cpp index 646ca960..aaec88b0 100644 --- a/libsrc/leddevice/LedDeviceLpd8806.cpp +++ b/libsrc/leddevice/LedDeviceLpd8806.cpp @@ -21,7 +21,7 @@ bool LedDeviceLpd8806::init(const QJsonObject &deviceConfig) _ledBuffer.resize(messageLength, 0x00); // Perform an initial reset to start accepting data on the first led - return writeBytes(_ledBuffer.size(), _ledBuffer.data()); + return writeBytes(clearSize, _ledBuffer.data()); } int LedDeviceLpd8806::write(const std::vector &ledValues)