Przeglądaj źródła

Fix FFT read range (now inclusive)

dds
PaulStoffregen 10 lat temu
rodzic
commit
8075883982
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      analyze_fft1024.h
  2. +1
    -1
      analyze_fft256.h

+ 1
- 1
analyze_fft1024.h Wyświetl plik

@@ -74,7 +74,7 @@ public:
uint32_t sum = 0;
do {
sum += output[binFirst++];
} while (binFirst < binLast);
} while (binFirst <= binLast);
return (float)sum * (1.0 / 16384.0);
}
void averageTogether(uint8_t n) {

+ 1
- 1
analyze_fft256.h Wyświetl plik

@@ -82,7 +82,7 @@ public:
uint32_t sum = 0;
do {
sum += output[binFirst++];
} while (binFirst < binLast);
} while (binFirst <= binLast);
return (float)sum * (1.0 / 16384.0);
}
void averageTogether(uint8_t n) {

Ładowanie…
Anuluj
Zapisz