diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-05-19 14:37:30 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-05-31 12:46:08 -0500 |
commit | 14184131ba863121ac0cda5d8cacfd9a18643fae (patch) | |
tree | fd794ace7ef5bbce89afbc774d14b9981579e264 /control/main.cpp | |
parent | 9c72667e8f6f75ffd1fd29de817fa8fdcbd1b45d (diff) | |
download | phosphor-fan-presence-14184131ba863121ac0cda5d8cacfd9a18643fae.tar.gz phosphor-fan-presence-14184131ba863121ac0cda5d8cacfd9a18643fae.zip |
Only setup set speed events when not init mode
Change-Id: Ia6987295a3eb4e23b9d6ae13a383e440386572de
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/main.cpp')
-rw-r--r-- | control/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/control/main.cpp b/control/main.cpp index be5b59e..413a419 100644 --- a/control/main.cpp +++ b/control/main.cpp @@ -30,15 +30,15 @@ int main(int argc, char* argv[]) exit(-1); } - Manager::Mode mode; + Mode mode; if (args["init"] == "true") { - mode = Manager::Mode::init; + mode = Mode::init; } else if (args["control"] == "true") { - mode = Manager::Mode::control; + mode = Mode::control; } else { @@ -49,7 +49,7 @@ int main(int argc, char* argv[]) Manager manager(bus, mode); //Init mode will just set fans to max and delay - if (mode == Manager::Mode::init) + if (mode == Mode::init) { manager.doInit(); return 0; |