mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 22:27:52 +00:00
WeFax rx ext app (#2566)
* wf3
* Ookbrute (#2354)
* Revert "Ookbrute (#2354)"
This reverts commit abb8143eec
.
* fix
* test edition
* re enable ble
* re enable ert
* steal amfm stuff
* something happens
* save bmp on start btn
* kinda works
* exit crash fixed
* redline, remove some hardcoded
* removed cpu killer red line, and some fixes
* simplify #1
* seems ok. time to improve
* added hidden freq offset to receiver model, so wefax can be set to the "correct" freq without users needs to substract 300 hz
* badly implemented sync detection, and disabled it.
* fix for fix
* fixes
* fix offset to real life off
* no line on freq enter
* fixes
This commit is contained in:
@@ -53,13 +53,21 @@ class BoundFrequencyField : public FrequencyField {
|
||||
};
|
||||
|
||||
on_edit = [this, &nav]() {
|
||||
if (on_edit_shown)
|
||||
on_edit_shown();
|
||||
auto freq_view = nav.push<FrequencyKeypadView>(model->target_frequency());
|
||||
freq_view->on_changed = [this](rf::Frequency f) {
|
||||
set_value(f);
|
||||
};
|
||||
nav.set_on_pop([this]() {
|
||||
if (on_edit_hidden)
|
||||
on_edit_hidden();
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
std::function<void(void)> on_edit_shown{}; // fired, when the FrequencyKeypadView pops up
|
||||
std::function<void(void)> on_edit_hidden{}; // fired, when the FrequencyKeypadView ended
|
||||
// TODO: override set_step and update the rx model then call base.
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user