Skip to content

Commit 6263ad9

Browse files
committed
test-filter correct data type
1 parent 496a9f2 commit 6263ad9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/tests/filters/test-filter/test-filter.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void processFloat() {
7878
FIR<float> firf(coeff);
7979
unsigned long start = millis();
8080
for (int j = 0; j < 44100; j++) {
81-
int16_t result = firf.process(32767);
81+
auto result = firf.process(32767);
8282
if (j < max_array) {
8383
result_array[j] = result;
8484
}
@@ -92,7 +92,7 @@ void processDouble() {
9292
FIR<double> fird(coefd);
9393
unsigned long start = millis();
9494
for (int j = 0; j < 44100; j++) {
95-
int16_t result = fird.process(32767);
95+
auto result = fird.process(32767);
9696
if (j < max_array) {
9797
result_array[j] = result;
9898
}
@@ -106,7 +106,7 @@ void processInt16() {
106106
FIR<int16_t> fir16(coef16, 32767);
107107
unsigned long start = millis();
108108
for (int j = 0; j < 44100; j++) {
109-
int16_t result = fir16.process(32767);
109+
auto result = fir16.process(32767);
110110
if (j < max_array) {
111111
result_array[j] = result;
112112
}
@@ -120,7 +120,7 @@ void processInt32() {
120120
FIR<int32_t> fir32(coef32, 32767);
121121
unsigned long start = millis();
122122
for (int j = 0; j < 44100; j++) {
123-
int16_t result = fir32.process(32767);
123+
auto result = fir32.process(32767);
124124
if (j < max_array) {
125125
result_array[j] = result;
126126
}
@@ -134,7 +134,7 @@ void processInt64() {
134134
FIR<int64_t> fir64(coef64, 32767);
135135
unsigned long start = millis();
136136
for (int j = 0; j < 44100; j++) {
137-
int16_t result = fir64.process(32767);
137+
auto result = fir64.process(32767);
138138
if (j < max_array) {
139139
result_array[j] = result;
140140
}
@@ -154,8 +154,8 @@ void setup() {
154154
listResult();
155155
processDouble();
156156
listResult();
157-
processInt16();
158-
listResult();
157+
// processInt16();
158+
// listResult();
159159
processInt32();
160160
listResult();
161161
processInt64();

0 commit comments

Comments
 (0)