mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-19 03:38:05 -04:00
code cleaning, fast and slow mode adjustement, dc pixels displayed (#1137)
* code cleaning, fast and slow mode adjustement, dc pixels displayed * factorisation, comments * adjusting offsets for alignement * indent --------- Co-authored-by: GullCode <gullradriel@hotmail.com>
This commit is contained in:
parent
b9de1918b4
commit
db81b9b1e1
2 changed files with 44 additions and 53 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "spectrum_color_lut.hpp"
|
||||
|
||||
namespace ui {
|
||||
|
||||
#define LOOKING_GLASS_SLICE_WIDTH_MAX 20000000
|
||||
#define MHZ_DIV 1000000
|
||||
|
||||
|
@ -81,10 +82,8 @@ class GlassView : public View {
|
|||
void get_max_power(const ChannelSpectrum& spectrum, uint8_t bin, uint8_t& max_power);
|
||||
rf::Frequency get_freq_from_bin_pos(uint8_t pos);
|
||||
void on_marker_change();
|
||||
int64_t next_mult_of(int64_t num, int64_t multiplier);
|
||||
void adjust_range(int64_t* f_min, int64_t* f_max, int64_t width);
|
||||
void retune();
|
||||
bool move_to_next_position();
|
||||
bool process_bins(uint8_t* powerlevel);
|
||||
void on_channel_spectrum(const ChannelSpectrum& spectrum);
|
||||
void do_timers();
|
||||
void on_range_changed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue