commit | df766f251f25e32ccbfe1e3ea429f118478422bd | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Sat Oct 13 09:30:58 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Sat Oct 13 09:35:40 2018 -0700 |
tree | 9c8939a4bb99a87e20903e9d175cc9393b088f02 | |
parent | 45153926a6aa838f4ad83db681f97f8af17fc5f5 [diff] [blame] |
cleanup: reduce scope of variables Various things caught by cppcheck that are non-critical. Change-Id: I495453c84bc15788b85036a163ee36b0ac601fa1 Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/pid/ec/pid.cpp b/pid/ec/pid.cpp index ef0df14..c2236c2 100644 --- a/pid/ec/pid.cpp +++ b/pid/ec/pid.cpp
@@ -44,7 +44,7 @@ { float error; - float p_term = 0.0f; + float p_term; float i_term = 0.0f; float ff_term = 0.0f;