aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-08-22 20:34:03 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-08-22 20:34:03 -0400
commit32fc992f6a41a9a139aaaa6569f549b54c8a912f (patch)
treeceaf11acef9cace14b0238b596e6bf01f9eb39f5 /filter
parent96e4883081e253287d18c93118399f39b71551ea (diff)
filter loading and real-time execution
Diffstat (limited to 'filter')
-rw-r--r--filter/test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/test.cpp b/filter/test.cpp
index 0953539..24fdb72 100644
--- a/filter/test.cpp
+++ b/filter/test.cpp
@@ -8,8 +8,7 @@ void process_data(adcsample_t *samples, unsigned int size);
void process_data(adcsample_t *samples, unsigned int size)
{
- size--;
for (unsigned int i = 0; i < size; i++)
- samples[i] = samples[i] * 80 / 100 + samples[i + 1] * 20 / 100;
+ samples[i] /= 2;
}