From 7adaaffc0a020ef4ba86e1ed4d16b756dde7c176 Mon Sep 17 00:00:00 2001 From: redPanther Date: Mon, 5 Dec 2016 22:46:58 +0100 Subject: [PATCH] fix initial reset --- libsrc/leddevice/LedDeviceLpd8806.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)