From b34512e3d68efa365b060161fa0a8012faabeab0 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 21 Jun 2016 15:23:51 -0700 Subject: [PATCH] Eliminate a buffer_t copy/duplication. --- firmware/baseband/proc_tpms.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/baseband/proc_tpms.cpp b/firmware/baseband/proc_tpms.cpp index 3052e4a5..7c6c83d6 100644 --- a/firmware/baseband/proc_tpms.cpp +++ b/firmware/baseband/proc_tpms.cpp @@ -32,8 +32,7 @@ void TPMSProcessor::execute(const buffer_c8_t& buffer) { /* 2.4576MHz, 2048 samples */ const auto decim_0_out = decim_0.execute(buffer, dst_buffer); - const auto decim_1_out = decim_1.execute(decim_0_out, dst_buffer); - const auto decimator_out = decim_1_out; + const auto decimator_out = decim_1.execute(decim_0_out, dst_buffer); /* 307.2kHz, 256 samples */ feed_channel_stats(decimator_out); @@ -44,8 +43,8 @@ void TPMSProcessor::execute(const buffer_c8_t& buffer) { } } - for(size_t i=0; i