Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: LookupTables.cpp
- Revision:
- 1:099f1a4c5fc8
- Parent:
- 0:8c128e047ec9
--- a/LookupTables.cpp Tue Mar 28 08:48:23 2017 +0000
+++ b/LookupTables.cpp Wed Mar 29 08:42:31 2017 +0000
@@ -57,8 +57,8 @@
// Applies the hanning LUT to the supplied array of data
void applyHanningTable(float* data, int datasize){
- if (datasize == 1024){ // Only works for 10 bit data arrays
- for (int i = 0; i < 1024; i++){
+ if (datasize == 512){ // Only works for 9 bit data arrays
+ for (int i = 0; i < 512; i++){
data[i] *= hanningTable_f[i];
}
}