BW setting in TX view should now be used everywhere

Jammer center and width value editing bugfix
This commit is contained in:
furrtek
2017-08-12 19:28:57 +01:00
parent 81eb96f870
commit 728bb64543
11 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ void MicTXView::set_tx(bool enable) {
baseband::set_audiotx_data(
1536000U / 20, // 20Hz level update
transmitter_model.bandwidth(),
transmitter_model.channel_bandwidth(),
mic_gain_x10,
ctcss_enabled,
(uint32_t)((ctcss_tones[ctcss_index].frequency / 1536000.0) * 0xFFFFFFFFULL)
@@ -181,7 +181,7 @@ MicTXView::MicTXView(
};
field_bw.on_change = [this](uint32_t v) {
transmitter_model.set_bandwidth(v * 1000);
transmitter_model.set_channel_bandwidth(v * 1000);
};
field_bw.set_value(10);