avoid yellow icon in Audio App (minor issue) (#1372)

* avoid yellow icon in Audio App

* clear readability

* just more clear parentesis
This commit is contained in:
Brumi-2021 2023-08-13 23:52:54 +02:00 committed by GitHub
parent e74a9f3b41
commit 09b9ed642f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ uint32_t RecordView::set_sampling_rate(uint32_t new_sampling_rate) {
* They are ok as recorded spectrum indication, but they should not be used by Replay app. (the voice speed will be accelerated)
* We keep original black background in all the correct IQ .C16 files BW's Options. */
if ((actual_sampling_rate > 8'000'000) || (actual_sampling_rate <= 1'600'000)) { // yellow REC button means not ok for REC, BW >1Mhz , BW <= 100khz due to NG aliasing.
if ((actual_sampling_rate > 8'000'000) || ((actual_sampling_rate <= 1'600'000) && (oversample_rate > OversampleRate::x8))) { // yellow REC button means not ok for REC, BW >1Mhz , BW <= 100khz due to NG aliasing.
// to be updated or removed in the next PR's, according the achieved extended BW's with good quality bandwith REC limits .
button_record.set_background(ui::Color::yellow());
} else {