Skip to content

Commit

Permalink
Add audio channels settings to reset method
Browse files Browse the repository at this point in the history
  • Loading branch information
f1xpl committed Mar 11, 2018
1 parent 38a9bd0 commit fba7aaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/autoapp/Configuration/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand All @@ -119,6 +120,8 @@ void Configuration::reset()
buttonCodes_.clear();
bluetoothAdapterType_ = BluetoothAdapterType::NONE;
bluetoothRemoteAdapterAddress_ = "";
musicAudioChannelEnabled_ = true;
speechAudiochannelEnabled_ = true;
}

void Configuration::save()
Expand Down

0 comments on commit fba7aaf

Please sign in to comment.