change default effect priority

Former-commit-id: ccdda396083b61c417eaf908b628a2e5a7796ba4
This commit is contained in:
brindosch
2016-05-18 20:35:47 +02:00
parent f584b05de5
commit 19a6bf1ee7
2 changed files with 2 additions and 4 deletions

View File

@@ -129,8 +129,8 @@ int main(int argc, char** argv)
// Get the parameters for the bootsequence
const std::string effectName = effectConfig["effect"].asString();
const unsigned duration_ms = effectConfig["duration_ms"].asUInt();
const int priority = (duration_ms != 0) ? 0 : effectConfig.get("priority",990).asInt();
const int bootcolor_priority = (priority > 990) ? priority+1 : 990;
const int priority = (duration_ms != 0) ? 0 : effectConfig.get("priority",700).asInt();
const int bootcolor_priority = (priority > 700) ? priority+1 : 700;
// clear the leds
ColorRgb boot_color = ColorRgb::BLACK;