mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-04 12:44:20 -04:00
Extract FrequencyStepView from FrequencyOptionsView.
...for use in capture app.
This commit is contained in:
parent
77291b4e31
commit
a98ada0cb7
2 changed files with 30 additions and 19 deletions
|
@ -232,7 +232,7 @@ FrequencyOptionsView::FrequencyOptionsView(
|
|||
{
|
||||
set_style(style);
|
||||
|
||||
options_step.on_change = [this](size_t n, OptionsField::value_t v) {
|
||||
field_step.on_change = [this](size_t n, OptionsField::value_t v) {
|
||||
(void)n;
|
||||
this->on_step_changed(v);
|
||||
};
|
||||
|
@ -243,14 +243,14 @@ FrequencyOptionsView::FrequencyOptionsView(
|
|||
|
||||
add_children({ {
|
||||
&text_step,
|
||||
&options_step,
|
||||
&field_step,
|
||||
&field_ppm,
|
||||
&text_ppm,
|
||||
} });
|
||||
}
|
||||
|
||||
void FrequencyOptionsView::set_step(rf::Frequency f) {
|
||||
options_step.set_by_value(f);
|
||||
field_step.set_by_value(f);
|
||||
}
|
||||
|
||||
void FrequencyOptionsView::set_reference_ppm_correction(int32_t v) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue