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:
Jared Boone 2016-07-19 10:48:45 -07:00
parent a98ada0cb7
commit 6f65cdf41e
2 changed files with 21 additions and 10 deletions

View file

@ -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,