mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
ui_spectrum_painter tx gain initialization (#1059)
When starting the app, actual tx gain is 47 while the ui shows 10. "Increasing" gain to 11 takes effect, reducing actual gain as displayed in UI. This change makes the UI gain value consistent with actual tx gain.
This commit is contained in:
parent
feee1f7ab3
commit
ffd72eb232
@ -69,7 +69,7 @@ SpectrumPainterView::SpectrumPainterView(
|
||||
};
|
||||
};
|
||||
|
||||
tx_gain = 10;
|
||||
tx_gain = portapack::transmitter_model.tx_gain();
|
||||
field_rfgain.set_value(tx_gain); // Initial default value (-12 dB's max ).
|
||||
field_rfgain.on_change = [this](int32_t v) { // allow initial value change just after opened file.
|
||||
tx_gain = v;
|
||||
|
Loading…
Reference in New Issue
Block a user