fix initial reset

This commit is contained in:
redPanther 2016-12-05 22:46:58 +01:00 committed by GitHub
parent ec283cc22b
commit 7adaaffc0a

View File

@ -21,7 +21,7 @@ bool LedDeviceLpd8806::init(const QJsonObject &deviceConfig)
_ledBuffer.resize(messageLength, 0x00); _ledBuffer.resize(messageLength, 0x00);
// Perform an initial reset to start accepting data on the first led // 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<ColorRgb> &ledValues) int LedDeviceLpd8806::write(const std::vector<ColorRgb> &ledValues)