mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Fixed bug in leddevice factory
Former-commit-id: 260bcab6a2d7c521987667e263dbeae2997ebd1e
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -1,4 +1,6 @@ | ||||
|  | ||||
| #include <HyperionConfig.h> | ||||
|  | ||||
| // Leddevice includes | ||||
| #include <leddevice/LedDeviceFactory.h> | ||||
|  | ||||
| @@ -76,13 +78,13 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig) | ||||
|  | ||||
| //              device = deviceWs2811; | ||||
| //      } | ||||
|         else if (type == "ws2812b") | ||||
|         { | ||||
|                 LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b(); | ||||
|                 deviceWs2812b->open(); | ||||
| 		else if (type == "ws2812b") | ||||
| 		{ | ||||
| 				LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b(); | ||||
| 				deviceWs2812b->open(); | ||||
|  | ||||
|                 device = deviceWs2812b; | ||||
|         } | ||||
| 				device = deviceWs2812b; | ||||
| 		} | ||||
| 	else if (type == "adalight") | ||||
| 	{ | ||||
| 		const std::string output = deviceConfig["output"].asString(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user