Merge pull request #848 from gullradriel/rssi-peak-level-tune

Rssi peak level tune
This commit is contained in:
gullradriel 2023-03-22 14:40:21 +01:00 committed by GitHub
commit dd8538b8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -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 );

View File

@ -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();

View File

@ -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()