Enabled KnightRider boot sequence

This commit is contained in:
T. van der Zwan 2013-09-12 18:42:16 +00:00
parent ecdd7775c5
commit 94a8dfad2f

View File

@ -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;