mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix Skydimo - populate outbut buffer (#1802)
This commit is contained in:
parent
27f74af4e3
commit
bc1bfbc83a
@ -64,5 +64,9 @@ int LedDeviceSkydimo::write(const std::vector<ColorRgb> & ledValues)
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(HEADER_SIZE + ledValues.size() * sizeof(ColorRgb) <= _ledBuffer.size());
|
||||
|
||||
memcpy(HEADER_SIZE + _ledBuffer.data(), ledValues.data(), ledValues.size() * sizeof(ColorRgb));
|
||||
|
||||
return writeBytes(_bufferLength, _ledBuffer.data());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user