Add audio channels settings to reset method

pull/53/head v1.0
michal.szwaj 2018-03-11 15:34:13 +01:00
parent 38a9bd0bc9
commit fba7aaf208
1 changed files with 4 additions and 1 deletions

View File

@ -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()