Change LedDeviceFactory
This commit is contained in:
parent
bbb2ef0163
commit
cc7b2cfc48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue