Change LedDeviceFactory

This commit is contained in:
Ansel Zandegran 2018-02-04 19:38:50 +01:00
parent bbb2ef0163
commit cc7b2cfc48
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
#ifdef ENABLE_WS2812BPWM
else if (type == "ws2812b")
{
libleddevice.anew LedDeviceWS2812b();
LedDeviceWS2812b * ledDeviceWS2812b = new LedDeviceWS2812b();
device = ledDeviceWS2812b;
}
#endif