mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-09 02:05:21 -04:00
Added missing files, ENUMed modulation modes
This commit is contained in:
parent
9b8b8cc83f
commit
3477a2691a
34 changed files with 583 additions and 98 deletions
|
@ -456,7 +456,7 @@ ReceiverView::ReceiverView(
|
|||
options_modulation.set_by_value(receiver_model.modulation());
|
||||
options_modulation.on_change = [this](size_t n, OptionsField::value_t v) {
|
||||
(void)n;
|
||||
this->on_modulation_changed(v);
|
||||
this->on_modulation_changed((mode_type)v);
|
||||
};
|
||||
/*
|
||||
options_baseband_oversampling.set_by_value(receiver_model.baseband_oversampling());
|
||||
|
@ -625,7 +625,7 @@ void ReceiverView::on_vga_changed(int32_t v_db) {
|
|||
receiver_model.set_vga(v_db);
|
||||
}
|
||||
|
||||
void ReceiverView::on_modulation_changed(int32_t modulation) {
|
||||
void ReceiverView::on_modulation_changed(mode_type modulation) {
|
||||
/* TODO: This is TERRIBLE!!! */
|
||||
switch(modulation) {
|
||||
case 3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue