From 9f48199a96bdb7e55a7cdaadd88351e8994ceb55 Mon Sep 17 00:00:00 2001 From: Brumi-2021 Date: Sat, 27 Nov 2021 23:36:44 +0100 Subject: [PATCH] Changing background icon to yellow in the decimated files recording --- firmware/application/ui_record_view.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/firmware/application/ui_record_view.cpp b/firmware/application/ui_record_view.cpp index 8d174e22..b7bbf650 100644 --- a/firmware/application/ui_record_view.cpp +++ b/firmware/application/ui_record_view.cpp @@ -98,6 +98,19 @@ void RecordView::focus() { } void RecordView::set_sampling_rate(const size_t new_sampling_rate) { + + /* We are changing "REC" icon background to yellow in BW rec Options >600Khz + where we are NOT recording full IQ .C16 files (recorded files are decimated ones). + Those decimated recorded files,has not the full IQ samples . + are ok as recorded spectrum indication, but they should not be used by Replay app. + + We keep original black background in all the correct IQ .C16 files BW's Options */ + if (new_sampling_rate > 4800000) { // > BW >600Khz (fs=8*BW), (750Khz ...2750Khz) + button_record.set_background(ui::Color::yellow()); + } else { + button_record.set_background(ui::Color::black()); + } + if( new_sampling_rate != sampling_rate ) { stop();