mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-08 07:49:04 +00:00
Mechanism to clear waterfall when switching modulations.
This commit is contained in:
@@ -75,6 +75,12 @@ public:
|
||||
draw_frequency_ticks(painter, r);
|
||||
}
|
||||
|
||||
void clear() {
|
||||
spectrum_sampling_rate = 0;
|
||||
spectrum_bins = 0;
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
private:
|
||||
static constexpr Dim filter_band_height = 4;
|
||||
|
||||
@@ -197,6 +203,13 @@ public:
|
||||
(void)painter;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
display.fill_rectangle(
|
||||
screen_rect(),
|
||||
Color::black()
|
||||
);
|
||||
}
|
||||
|
||||
void on_channel_spectrum(
|
||||
const ChannelSpectrum& spectrum
|
||||
) {
|
||||
@@ -260,6 +273,11 @@ public:
|
||||
(void)painter;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
waterfall_view.clear();
|
||||
frequency_scale.clear();
|
||||
}
|
||||
|
||||
private:
|
||||
WaterfallView waterfall_view;
|
||||
FrequencyScale frequency_scale;
|
||||
|
||||
Reference in New Issue
Block a user