Changing background icon to yellow in the decimated files recording

This commit is contained in:
Brumi-2021 2021-11-27 23:36:44 +01:00
parent 05a09bc988
commit 9f48199a96

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