mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-16 15:01:28 +00:00
Merge pull request #290 from GullCode/ui_tv_warning_fix
removed unused var
This commit is contained in:
commit
e0e57e5af2
@ -199,7 +199,7 @@ void AnalogTvView::on_show_options_rf_gain() {
|
|||||||
void AnalogTvView::on_show_options_modulation() {
|
void AnalogTvView::on_show_options_modulation() {
|
||||||
std::unique_ptr<Widget> widget;
|
std::unique_ptr<Widget> widget;
|
||||||
|
|
||||||
const auto modulation = static_cast<ReceiverModel::Mode>(receiver_model.modulation());
|
static_cast<ReceiverModel::Mode>(receiver_model.modulation());
|
||||||
tv.show_audio_spectrum_view(true);
|
tv.show_audio_spectrum_view(true);
|
||||||
|
|
||||||
set_options_widget(std::move(widget));
|
set_options_widget(std::move(widget));
|
||||||
@ -216,6 +216,7 @@ void AnalogTvView::on_reference_ppm_correction_changed(int32_t v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AnalogTvView::on_headphone_volume_changed(int32_t v) {
|
void AnalogTvView::on_headphone_volume_changed(int32_t v) {
|
||||||
|
(void)v; //avoid warning
|
||||||
//tv::TVView::set_headphone_volume(this,v);
|
//tv::TVView::set_headphone_volume(this,v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ private:
|
|||||||
|
|
||||||
std::unique_ptr<Widget> options_widget { };
|
std::unique_ptr<Widget> options_widget { };
|
||||||
|
|
||||||
tv::TVWidget tv { true };
|
tv::TVWidget tv { };
|
||||||
|
|
||||||
void on_tuning_frequency_changed(rf::Frequency f);
|
void on_tuning_frequency_changed(rf::Frequency f);
|
||||||
void on_baseband_bandwidth_changed(uint32_t bandwidth_hz);
|
void on_baseband_bandwidth_changed(uint32_t bandwidth_hz);
|
||||||
|
@ -182,7 +182,7 @@ void TVView::clear() {
|
|||||||
|
|
||||||
/* TVWidget *******************************************************/
|
/* TVWidget *******************************************************/
|
||||||
|
|
||||||
TVWidget::TVWidget(const bool cursor) {
|
TVWidget::TVWidget() {
|
||||||
add_children({
|
add_children({
|
||||||
&tv_view,
|
&tv_view,
|
||||||
&field_xcorr
|
&field_xcorr
|
||||||
|
@ -92,7 +92,7 @@ class TVWidget : public View {
|
|||||||
public:
|
public:
|
||||||
std::function<void(int32_t offset)> on_select { };
|
std::function<void(int32_t offset)> on_select { };
|
||||||
|
|
||||||
TVWidget(const bool cursor = false);
|
TVWidget();
|
||||||
|
|
||||||
TVWidget(const TVWidget&) = delete;
|
TVWidget(const TVWidget&) = delete;
|
||||||
TVWidget(TVWidget&&) = delete;
|
TVWidget(TVWidget&&) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user