From fba7aaf208c52b1cc1b3e6471fc1e988aff968f6 Mon Sep 17 00:00:00 2001 From: "michal.szwaj" Date: Sun, 11 Mar 2018 15:34:13 +0100 Subject: [PATCH] Add audio channels settings to reset method --- src/autoapp/Configuration/Configuration.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/autoapp/Configuration/Configuration.cpp b/src/autoapp/Configuration/Configuration.cpp index 90b083b..c1c4229 100644 --- a/src/autoapp/Configuration/Configuration.cpp +++ b/src/autoapp/Configuration/Configuration.cpp @@ -102,7 +102,8 @@ void Configuration::load() catch(const boost::property_tree::ini_parser_error& e) { OPENAUTO_LOG(warning) << "[Configuration] failed to read configuration file: " << cConfigFileName - << ", error: " << e.what(); + << ", error: " << e.what() + << ". Using default configuration."; this->reset(); } } @@ -119,6 +120,8 @@ void Configuration::reset() buttonCodes_.clear(); bluetoothAdapterType_ = BluetoothAdapterType::NONE; bluetoothRemoteAdapterAddress_ = ""; + musicAudioChannelEnabled_ = true; + speechAudiochannelEnabled_ = true; } void Configuration::save()