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

@ -191,8 +191,6 @@ if [ $OS_OPENELEC -eq 1 ]; then
curl -# -L --get $OE_DEPENDECIES | tar -C /storage/hyperion/bin -xz
#set the executen bit (failsave)
chmod +x -R /storage/hyperion/bin
# modify the default config to have a correct effect path
sed -i 's:/opt:/storage:g' /storage/hyperion/config/hyperion.config.json
# /storage/.config is available as samba share. A symbolic link would not be working
false | cp -i /storage/hyperion/config/hyperion.config.json /storage/.config/hyperion.config.json 2>/dev/null

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;