mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 04:32:50 -04:00
Add frequency step control to capture app.
Redistribute other controls, remove empty row that had been reserved for options views.
This commit is contained in:
parent
a98ada0cb7
commit
6f65cdf41e
2 changed files with 21 additions and 10 deletions
|
@ -38,6 +38,7 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
|
|||
&rssi,
|
||||
&channel,
|
||||
&field_frequency,
|
||||
&field_frequency_step,
|
||||
&field_rf_amp,
|
||||
&field_lna,
|
||||
&field_vga,
|
||||
|
@ -59,6 +60,12 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
|
|||
};
|
||||
};
|
||||
|
||||
field_frequency_step.set_by_value(receiver_model.frequency_step());
|
||||
field_frequency_step.on_change = [this](size_t, OptionsField::value_t v) {
|
||||
receiver_model.set_frequency_step(v);
|
||||
this->field_frequency.set_step(v);
|
||||
};
|
||||
|
||||
radio::enable({
|
||||
tuning_frequency(),
|
||||
sampling_rate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue