Merge pull request #438 from Brumi-2021/Change_REC_icon_colour

Minor GUI change Capture App : Change "REC" icon background colour from black -> yellow , BW Options >600Khz
This commit is contained in:
Erwin Ried 2021-11-29 03:19:12 +01:00 committed by GitHub
commit c3da2863d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,19 @@ void RecordView::focus() {
} }
void RecordView::set_sampling_rate(const size_t new_sampling_rate) { 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 ) { if( new_sampling_rate != sampling_rate ) {
stop(); stop();