mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Merge pull request #848 from gullradriel/rssi-peak-level-tune
Rssi peak level tune
This commit is contained in:
commit
dd8538b8bf
@ -180,7 +180,8 @@ namespace ui {
|
||||
};
|
||||
|
||||
// default peak value
|
||||
peak_mode.set_selected_index(1);
|
||||
peak_mode.set_selected_index(3);
|
||||
rssi_resolution.set_selected_index(1);
|
||||
//FILL STEP OPTIONS
|
||||
freqman_set_modulation_option( field_mode );
|
||||
freqman_set_step_option_short( step_mode );
|
||||
|
@ -890,6 +890,7 @@ namespace ui {
|
||||
|
||||
|
||||
rssi.set_focusable(true);
|
||||
rssi.set_peak( true , 1000 );
|
||||
rssi.on_select = [this](RSSI&) {
|
||||
recon_thread->stop();
|
||||
nav_.pop();
|
||||
|
@ -102,7 +102,7 @@ namespace ui {
|
||||
// show green peak value
|
||||
if( peak_enabled )
|
||||
{
|
||||
const Rect r5 { r.left(), r.bottom() + peak , r.width() , 1 };
|
||||
const Rect r5 { r.left() + peak - 1 , r.top() , 3 , r.height() };
|
||||
painter.fill_rectangle(
|
||||
r5,
|
||||
Color::green()
|
||||
@ -160,7 +160,7 @@ namespace ui {
|
||||
// show green peak value if enabled
|
||||
if( peak_enabled )
|
||||
{
|
||||
const Rect r5 { r.left(), r.bottom() - peak , r.width() , 1 };
|
||||
const Rect r5 { r.left(), r.bottom() - peak - 1 , r.width() , 3 };
|
||||
painter.fill_rectangle(
|
||||
r5,
|
||||
Color::green()
|
||||
|
Loading…
Reference in New Issue
Block a user