mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 23:39:37 -05:00
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:
commit
c3da2863d5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user