Added some extra checks to be more tolerant for configration faults

Former-commit-id: 5061311d8116f848f36808f2c77dcff011ceb571
This commit is contained in:
johan
2013-10-16 23:19:40 +02:00
parent d50aec63f7
commit 64b9316a04
5 changed files with 379 additions and 363 deletions

View File

@@ -83,10 +83,11 @@ int main(int argc, char** argv)
if (config.isMember("bootsequence"))
{
bootSequence = BootSequenceFactory::createBootSequence(&hyperion, config["bootsequence"]);
if (bootSequence != nullptr)
{
bootSequence->start();
std::cout << "Boot sequence created and started" << std::endl;
}
}
@@ -152,7 +153,7 @@ int main(int argc, char** argv)
// run the application
int rc = app.exec();
std::cout << "Application closed" << std::endl;
std::cout << "Application closed with code " << rc << std::endl;
// Clear all colors (switchting off all leds)
hyperion.clearall();