From 56af29ce594d40c0519042634f806094ccbf5991 Mon Sep 17 00:00:00 2001 From: Timur Sattarov Date: Wed, 27 Nov 2013 21:24:12 +0400 Subject: [PATCH] fixing default LuminosityThresholdMode --- Software/src/Settings.cpp | 1 + Software/src/SettingsDefaults.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Software/src/Settings.cpp b/Software/src/Settings.cpp index 900ab810..df72fc52 100644 --- a/Software/src/Settings.cpp +++ b/Software/src/Settings.cpp @@ -1383,6 +1383,7 @@ void Settings::initCurrentProfile(bool isResetDefault) setNewOption(Profile::Key::Grab::IsSendDataOnlyIfColorsChanges, Profile::Grab::IsSendDataOnlyIfColorsChangesDefault, isResetDefault); setNewOption(Profile::Key::Grab::Slowdown, Profile::Grab::SlowdownDefault, isResetDefault); setNewOption(Profile::Key::Grab::LuminosityThreshold, Profile::Grab::MinimumLevelOfSensitivityDefault, isResetDefault); + setNewOption(Profile::Key::Grab::IsMinimumLuminosityEnabled, Profile::Grab::IsMinimumLuminosityEnabledDefault, isResetDefault); // [MoodLamp] setNewOption(Profile::Key::MoodLamp::IsLiquidMode, Profile::MoodLamp::IsLiquidMode, isResetDefault); setNewOption(Profile::Key::MoodLamp::Color, Profile::MoodLamp::ColorDefault, isResetDefault); diff --git a/Software/src/SettingsDefaults.hpp b/Software/src/SettingsDefaults.hpp index 38a57a0e..d994705e 100644 --- a/Software/src/SettingsDefaults.hpp +++ b/Software/src/SettingsDefaults.hpp @@ -130,6 +130,7 @@ static const ::Grab::GrabberType GrabberDefault = GRABMODE_DEFAULT; static const QString GrabberDefaultString = GRABMODE_DEFAULT_STR; static const bool IsAvgColorsEnabledDefault = false; static const bool IsSendDataOnlyIfColorsChangesDefault = true; +static const bool IsMinimumLuminosityEnabledDefault = true; static const int SlowdownMin = 1; static const int SlowdownDefault = 50; static const int SlowdownMax = 1000;