ReceiverModel: Method renaming.

update_modulation_configuration() -> update_modulation().
This commit is contained in:
Jared Boone 2016-07-27 14:39:49 -07:00
parent 82f6e7c306
commit 44a1b7d9d7
2 changed files with 6 additions and 6 deletions

View File

@ -147,7 +147,7 @@ void ReceiverModel::enable() {
update_vga();
update_baseband_bandwidth();
update_baseband_configuration();
update_modulation_configuration();
update_modulation();
update_headphone_volume();
}
@ -200,21 +200,21 @@ void ReceiverModel::set_baseband_configuration(const BasebandConfiguration confi
void ReceiverModel::set_am_configuration(const size_t n) {
if( n < am_configs.size() ) {
am_config_index = n;
update_modulation_configuration();
update_modulation();
}
}
void ReceiverModel::set_nbfm_configuration(const size_t n) {
if( n < nbfm_configs.size() ) {
nbfm_config_index = n;
update_modulation_configuration();
update_modulation();
}
}
void ReceiverModel::set_wfm_configuration(const size_t n) {
if( n < wfm_configs.size() ) {
wfm_config_index = n;
update_modulation_configuration();
update_modulation();
}
}
@ -236,7 +236,7 @@ void ReceiverModel::update_headphone_volume() {
audio::headphone::set_volume(headphone_volume_);
}
void ReceiverModel::update_modulation_configuration() {
void ReceiverModel::update_modulation() {
switch(static_cast<Mode>(modulation())) {
default:
case Mode::AMAudio:

View File

@ -134,7 +134,7 @@ private:
void update_baseband_configuration();
void update_headphone_volume();
void update_modulation_configuration();
void update_modulation();
void update_am_configuration();
void update_nbfm_configuration();
void update_wfm_configuration();