diff options
| author | Kun Yi <kunyi731@gmail.com> | 2019-07-10 21:55:58 -0700 |
|---|---|---|
| committer | Kun Yi <kunyi731@gmail.com> | 2019-07-10 21:55:58 -0700 |
| commit | 5e52eab95dc943511c37a3c94a14f7bd0cabec18 (patch) | |
| tree | 26dbf698502a9c53cb35504d57fe90c30f22ba61 /dbus | |
| parent | e7f4a5d5c93b8ee7e91351c6f7c3e66f03cb40f5 (diff) | |
| download | phosphor-pid-control-5e52eab95dc943511c37a3c94a14f7bd0cabec18.tar.gz phosphor-pid-control-5e52eab95dc943511c37a3c94a14f7bd0cabec18.zip | |
dbuspassive: Fix typo in variable check
When setting min, should check for min instead of max.
Signed-off-by: Kun Yi <kunyi731@gmail.com>
Change-Id: I0097bb329408f807fea6d68ca0055c5d8215aba3
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbuspassive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbuspassive.cpp b/dbus/dbuspassive.cpp index a0dbc57..5614335 100644 --- a/dbus/dbuspassive.cpp +++ b/dbus/dbuspassive.cpp @@ -65,7 +65,7 @@ std::unique_ptr<ReadInterface> DbusPassive::createDbusPassive( settings.max = info->max; } - if (info->max != conf::inheritValueFromDbus) + if (info->min != conf::inheritValueFromDbus) { settings.min = info->min; } |

