Improve spectrum (no more audio warning !)
This commit is contained in:
@@ -35,7 +35,7 @@ void menuRadioSpectrum(event_t event)
|
|||||||
uint8_t peak_y = 1;
|
uint8_t peak_y = 1;
|
||||||
uint8_t peak_x = 0;
|
uint8_t peak_x = 0;
|
||||||
for (uint8_t i=0; i<LCD_W; i++) {
|
for (uint8_t i=0; i<LCD_W; i++) {
|
||||||
uint8_t h = reusableBuffer.spectrum.bars[i];
|
uint8_t h = reusableBuffer.spectrum.bars[i] >> 1;
|
||||||
if (h > peak_y) {
|
if (h > peak_y) {
|
||||||
peak_x = i;
|
peak_x = i;
|
||||||
peak_y = h;
|
peak_y = h;
|
||||||
|
|||||||
@@ -1488,9 +1488,9 @@ void doMixerCalculations()
|
|||||||
static uint8_t countRangecheck = 0;
|
static uint8_t countRangecheck = 0;
|
||||||
for (uint8_t i=0; i<NUM_MODULES; ++i) {
|
for (uint8_t i=0; i<NUM_MODULES; ++i) {
|
||||||
#if defined(MULTIMODULE)
|
#if defined(MULTIMODULE)
|
||||||
if (moduleSettings[i].mode != MODULE_MODE_NORMAL || (i == EXTERNAL_MODULE && multiModuleStatus.isBinding())) {
|
if ((moduleSettings[i].mode != MODULE_MODE_NORMAL && moduleSettings[i].mode != MODULE_MODE_SPECTRUM_ANALYSER) || (i == EXTERNAL_MODULE && multiModuleStatus.isBinding())) {
|
||||||
#else
|
#else
|
||||||
if (moduleSettings[i].mode != MODULE_MODE_NORMAL) {
|
if (moduleSettings[i].mode != MODULE_MODE_NORMAL && moduleSettings[i].mode != MODULE_MODE_SPECTRUM_ANALYSER) {
|
||||||
#endif
|
#endif
|
||||||
if (++countRangecheck >= 250) {
|
if (++countRangecheck >= 250) {
|
||||||
countRangecheck = 0;
|
countRangecheck = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user