mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Enabled KnightRider boot sequence
This commit is contained in:
parent
ecdd7775c5
commit
94a8dfad2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user