From 89252d45d01960d5fdb740e88bc5b302079a09b4 Mon Sep 17 00:00:00 2001 From: "T. van der Zwan" Date: Fri, 13 Dec 2013 18:59:01 +0000 Subject: [PATCH] Added log statement for failure to start boot sequence. Corrected name in default configuration file of bootsequence. Former-commit-id: 7a303ca080f11e2bb5d72da039b9b1c1b44ddcdb --- config/hyperion.config.json | 3 ++- src/hyperiond/hyperiond.cpp | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/hyperion.config.json b/config/hyperion.config.json index c232cac0..3ed2b855 100644 --- a/config/hyperion.config.json +++ b/config/hyperion.config.json @@ -364,7 +364,8 @@ "/opt/hyperion/effects" ] }, - "Bootsequence" : + + "bootsequence" : { "effect" : "Rainbow swirl fast", "duration_ms" : 3000 diff --git a/src/hyperiond/hyperiond.cpp b/src/hyperiond/hyperiond.cpp index c0b50cb1..3f46c712 100644 --- a/src/hyperiond/hyperiond.cpp +++ b/src/hyperiond/hyperiond.cpp @@ -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; } }