Added log statement for failure to start boot sequence.

Corrected name in default configuration file of bootsequence.


Former-commit-id: 7a303ca080f11e2bb5d72da039b9b1c1b44ddcdb
This commit is contained in:
T. van der Zwan 2013-12-13 18:59:01 +00:00
parent 734759ffb3
commit 89252d45d0
2 changed files with 7 additions and 2 deletions

View File

@ -364,7 +364,8 @@
"/opt/hyperion/effects"
]
},
"Bootsequence" :
"bootsequence" :
{
"effect" : "Rainbow swirl fast",
"duration_ms" : 3000

View File

@ -107,7 +107,11 @@ int main(int argc, char** argv)
// if (retVal == 0)
if (hyperion.setEffect(effectName, priority, duration_ms) == 0)
{
std::cout << "Boot sequence created and started" << std::endl;
std::cout << "Boot sequence(" << effectName << ") created and started" << std::endl;
}
else
{
std::cout << "Failed to start boot sequence: " << effectName << std::endl;
}
}