From 727d4c8a1f2ddb5967ff2b0537f3f302403ab8a9 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 2 Oct 2015 17:49:59 -0700 Subject: [PATCH] Const the FixedErrorFilter operator(). --- firmware/baseband/clock_recovery.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/baseband/clock_recovery.hpp b/firmware/baseband/clock_recovery.hpp index ee1ab8de..2e36414b 100644 --- a/firmware/baseband/clock_recovery.hpp +++ b/firmware/baseband/clock_recovery.hpp @@ -91,7 +91,7 @@ class FixedErrorFilter { public: float operator()( const float lateness - ) { + ) const { return (lateness < 0.0f) ? weight : -weight; }