mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-05-08 04:46:49 +00:00
Remove commented and unused code.
This commit is contained in:
parent
34434c088c
commit
87a6f931c9
@ -371,10 +371,8 @@ ReceiverView::ReceiverView(
|
|||||||
&audio,
|
&audio,
|
||||||
&field_frequency,
|
&field_frequency,
|
||||||
&field_lna,
|
&field_lna,
|
||||||
//&options_baseband_bandwidth,
|
|
||||||
&field_vga,
|
&field_vga,
|
||||||
&options_modulation,
|
&options_modulation,
|
||||||
//&options_baseband_oversampling,
|
|
||||||
&field_volume,
|
&field_volume,
|
||||||
&view_frequency_options,
|
&view_frequency_options,
|
||||||
&view_rf_gain_options,
|
&view_rf_gain_options,
|
||||||
@ -404,13 +402,7 @@ ReceiverView::ReceiverView(
|
|||||||
field_lna.on_show_options = [this]() {
|
field_lna.on_show_options = [this]() {
|
||||||
this->on_show_options_rf_gain();
|
this->on_show_options_rf_gain();
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
options_baseband_bandwidth.set_by_value(receiver_model.baseband_bandwidth());
|
|
||||||
options_baseband_bandwidth.on_change = [this](size_t n, OptionsField::value_t v) {
|
|
||||||
(void)n;
|
|
||||||
this->on_baseband_bandwidth_changed(v);
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
field_vga.set_value(receiver_model.vga());
|
field_vga.set_value(receiver_model.vga());
|
||||||
field_vga.on_change = [this](int32_t v_db) {
|
field_vga.on_change = [this](int32_t v_db) {
|
||||||
this->on_vga_changed(v_db);
|
this->on_vga_changed(v_db);
|
||||||
@ -421,13 +413,7 @@ ReceiverView::ReceiverView(
|
|||||||
(void)n;
|
(void)n;
|
||||||
this->on_modulation_changed(static_cast<ReceiverModel::Mode>(v));
|
this->on_modulation_changed(static_cast<ReceiverModel::Mode>(v));
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
options_baseband_oversampling.set_by_value(receiver_model.baseband_oversampling());
|
|
||||||
options_baseband_oversampling.on_change = [this](size_t n, OptionsField::value_t v) {
|
|
||||||
(void)n;
|
|
||||||
this->on_baseband_oversampling_changed(v);
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
field_volume.set_value((receiver_model.headphone_volume() - wolfson::wm8731::headphone_gain_range.max).decibel() + 99);
|
field_volume.set_value((receiver_model.headphone_volume() - wolfson::wm8731::headphone_gain_range.max).decibel() + 99);
|
||||||
field_volume.on_change = [this](int32_t v) {
|
field_volume.on_change = [this](int32_t v) {
|
||||||
this->on_headphone_volume_changed(v);
|
this->on_headphone_volume_changed(v);
|
||||||
@ -555,8 +541,4 @@ void ReceiverView::on_headphone_volume_changed(int32_t v) {
|
|||||||
receiver_model.set_headphone_volume(new_volume);
|
receiver_model.set_headphone_volume(new_volume);
|
||||||
}
|
}
|
||||||
|
|
||||||
// void ReceiverView::on_baseband_oversampling_changed(int32_t v) {
|
|
||||||
// receiver_model.set_baseband_oversampling(v);
|
|
||||||
// }
|
|
||||||
|
|
||||||
} /* namespace ui */
|
} /* namespace ui */
|
||||||
|
@ -382,11 +382,7 @@ private:
|
|||||||
LNAGainField field_lna {
|
LNAGainField field_lna {
|
||||||
{ 15 * 8, 0 * 16 }
|
{ 15 * 8, 0 * 16 }
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
BasebandBandwidthField options_baseband_bandwidth {
|
|
||||||
{ 15 * 8, 1 * 16 },
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
NumberField field_vga {
|
NumberField field_vga {
|
||||||
{ 18 * 8, 0 * 16},
|
{ 18 * 8, 0 * 16},
|
||||||
2,
|
2,
|
||||||
@ -405,24 +401,6 @@ private:
|
|||||||
{ "SPEC", toUType(ReceiverModel::Mode::SpectrumAnalysis) },
|
{ "SPEC", toUType(ReceiverModel::Mode::SpectrumAnalysis) },
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
OptionsField options_baseband_oversampling {
|
|
||||||
{ 24 * 8, 1 * 16 },
|
|
||||||
1,
|
|
||||||
{
|
|
||||||
{ "4", 4 },
|
|
||||||
{ "6", 6 },
|
|
||||||
{ "8", 8 },
|
|
||||||
}
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
NumberField field_vregmode {
|
|
||||||
{ 24 * 8, 1 * 16 },
|
|
||||||
1,
|
|
||||||
{ 0, 1 },
|
|
||||||
1,
|
|
||||||
' ',
|
|
||||||
};
|
|
||||||
|
|
||||||
NumberField field_volume {
|
NumberField field_volume {
|
||||||
{ 28 * 8, 0 * 16 },
|
{ 28 * 8, 0 * 16 },
|
||||||
@ -455,7 +433,6 @@ private:
|
|||||||
void on_frequency_step_changed(rf::Frequency f);
|
void on_frequency_step_changed(rf::Frequency f);
|
||||||
void on_reference_ppm_correction_changed(int32_t v);
|
void on_reference_ppm_correction_changed(int32_t v);
|
||||||
void on_headphone_volume_changed(int32_t v);
|
void on_headphone_volume_changed(int32_t v);
|
||||||
// void on_baseband_oversampling_changed(int32_t v);
|
|
||||||
void on_edit_frequency();
|
void on_edit_frequency();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user