mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Fixed bug in x86 compile
Former-commit-id: 022ed458e14a9692387ce382dbafb4cec4002c8e
This commit is contained in:
		| @@ -63,6 +63,16 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig) | ||||
|  | ||||
| 		device = deviceLpd8806; | ||||
| 	} | ||||
| 	else if (type == "p9813") | ||||
| 	{ | ||||
| 		const std::string output = deviceConfig["output"].asString(); | ||||
| 		const unsigned rate      = deviceConfig["rate"].asInt(); | ||||
|  | ||||
| 		LedDeviceP9813* deviceP9813 = new LedDeviceP9813(output, rate); | ||||
| 		deviceP9813->open(); | ||||
|  | ||||
| 		device = deviceP9813; | ||||
| 	} | ||||
| 	else if (type == "ws2801" || type == "lightberry") | ||||
| 	{ | ||||
| 		const std::string output = deviceConfig["output"].asString(); | ||||
| @@ -146,16 +156,6 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig) | ||||
|  | ||||
| 			device = deviceWs2812b; | ||||
| 	} | ||||
| 	else if (type == "p9813") | ||||
| 	{ | ||||
| 		const std::string output = deviceConfig["output"].asString(); | ||||
| 		const unsigned rate      = deviceConfig["rate"].asInt(); | ||||
|  | ||||
| 		LedDeviceP9813* deviceP9813 = new LedDeviceP9813(output, rate); | ||||
| 		deviceP9813->open(); | ||||
|  | ||||
| 		device = deviceP9813; | ||||
| 	} | ||||
| 	else | ||||
| 	{ | ||||
| 		std::cout << "Unable to create device " << type << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user