瀏覽代碼

Fix FFT read range (now inclusive)

dds
PaulStoffregen 9 年之前
父節點
當前提交
8075883982
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      analyze_fft1024.h
  2. +1
    -1
      analyze_fft256.h

+ 1
- 1
analyze_fft1024.h 查看文件

@@ -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 查看文件

@@ -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) {

Loading…
取消
儲存