summaryrefslogtreecommitdiffstats
path: root/experiments
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-03-11 08:54:51 -0700
committerPatrick Venture <venture@google.com>2019-03-11 08:55:16 -0700
commit6d31049a4eb38f7b86874e9286c771ae0dd5f14d (patch)
treeae5b07d805aba38bc9bbf6e865828ee888bb38e8 /experiments
parent005d46214073bb9ede18b4aa17eac8ff4ea72d7d (diff)
downloadphosphor-pid-control-6d31049a4eb38f7b86874e9286c771ae0dd5f14d.tar.gz
phosphor-pid-control-6d31049a4eb38f7b86874e9286c771ae0dd5f14d.zip
experiment: cppcheck cleanup
[experiments/drive.cpp:83] -> [experiments/drive.cpp:96]: (style) Variable 'check' is reassigned a value before the old one has been used. Change-Id: I241a2b38418ab89790d2d8762aaceb3cd080ad77 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'experiments')
-rw-r--r--experiments/drive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/experiments/drive.cpp b/experiments/drive.cpp
index 3eed0a0..22fd4b6 100644
--- a/experiments/drive.cpp
+++ b/experiments/drive.cpp
@@ -80,7 +80,7 @@ static void driveGoal(int64_t& seriesCnt, int64_t setPwm, int64_t goal,
while (reading)
{
- bool check = false;
+ bool check;
ReadReturn r0 = fan0->read();
ReadReturn r1 = fan1->read();
int64_t n0 = static_cast<int64_t>(r0.value);
OpenPOWER on IntegriCloud