From 570775552c2ae7ed807b521306a9672033f33ee2 Mon Sep 17 00:00:00 2001 From: GullCode Date: Mon, 3 Apr 2023 12:45:35 +0200 Subject: [PATCH] fixed peak that was drawing after the rssi widget --- firmware/application/ui/ui_rssi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/ui/ui_rssi.cpp b/firmware/application/ui/ui_rssi.cpp index 7416981e..9dabbe08 100644 --- a/firmware/application/ui/ui_rssi.cpp +++ b/firmware/application/ui/ui_rssi.cpp @@ -102,7 +102,7 @@ namespace ui { // show green peak value if( peak_enabled ) { - const Rect r5 { r.left() + peak - 1 , r.top() , 3 , r.height() }; + const Rect r5 { r.left() + peak - 3 , 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 - 1 , r.width() , 3 }; + const Rect r5 { r.left(), r.bottom() - peak - 3 , r.width() , 3 }; painter.fill_rectangle( r5, Color::green()