From 4b98dd6e72ac44ae631ed35e706a776df9c582c5 Mon Sep 17 00:00:00 2001 From: johan Date: Wed, 13 Nov 2013 23:17:49 +0100 Subject: [PATCH] Code formatting and comments Former-commit-id: 80b42aa9905d560aff1c1052e3bcd26eddb0821b --- libsrc/hyperion/device/LedDeviceLightpack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/hyperion/device/LedDeviceLightpack.cpp b/libsrc/hyperion/device/LedDeviceLightpack.cpp index 01b6fdf2..2be0f9f0 100644 --- a/libsrc/hyperion/device/LedDeviceLightpack.cpp +++ b/libsrc/hyperion/device/LedDeviceLightpack.cpp @@ -184,7 +184,7 @@ int LedDeviceLightpack::open() } // set the led buffer size (command + 6 bytes per led) - _ledBuffer.resize(1 + _ledCount * 6, 0); + _ledBuffer = std::vector(1 + _ledCount * 6, 0); _ledBuffer[0] = CMD_UPDATE_LEDS; }