mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Enabled KnightRider boot sequence
This commit is contained in:
		| @@ -4,6 +4,7 @@ | ||||
|  | ||||
| // Local Bootsequence includes | ||||
| #include "RainbowBootSequence.h" | ||||
| #include "KittBootSequence.h" | ||||
|  | ||||
| BootSequence * BootSequenceFactory::createBootSequence(Hyperion * hyperion, const Json::Value & jsonConfig) | ||||
| { | ||||
| @@ -20,11 +21,8 @@ BootSequence * BootSequenceFactory::createBootSequence(Hyperion * hyperion, cons | ||||
| 	} | ||||
| 	else if (type == "knightrider") | ||||
| 	{ | ||||
| 		std::cout << "KNIGHT RIDER NOT IMPLEMENTED YET" << std::endl; | ||||
| 		return nullptr; | ||||
| //		const unsigned duration_ms = jsonConfig["duration_ms"].asUint(); | ||||
| //		const std::string colorStr = jsonConfig["color"].asString(); | ||||
| //		return new KnightRiderSequence(hyperion, duration_ms); | ||||
| 		const unsigned duration_ms = jsonConfig["duration_ms"].asUInt(); | ||||
| 		return new KittBootSequence(hyperion, duration_ms); | ||||
| 	} | ||||
|  | ||||
| 	std::cerr << "Unknown boot-sequence selected; boot-sequence disabled." << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user