diff options
| author | Patrick Venture <venture@google.com> | 2018-10-13 09:30:58 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2018-10-13 09:35:40 -0700 |
| commit | df766f251f25e32ccbfe1e3ea429f118478422bd (patch) | |
| tree | 9c8939a4bb99a87e20903e9d175cc9393b088f02 /pid/ec | |
| parent | 45153926a6aa838f4ad83db681f97f8af17fc5f5 (diff) | |
| download | phosphor-pid-control-df766f251f25e32ccbfe1e3ea429f118478422bd.tar.gz phosphor-pid-control-df766f251f25e32ccbfe1e3ea429f118478422bd.zip | |
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>
Diffstat (limited to 'pid/ec')
| -rw-r--r-- | pid/ec/pid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 pid(pid_info_t* pidinfoptr, float input, float setpoint) { float error; - float p_term = 0.0f; + float p_term; float i_term = 0.0f; float ff_term = 0.0f; |

