commit | d6820bb8867e93c52ad9643f397d9fd47515c0c6 | [log] [tgz] |
---|---|---|
author | Bob King <Bob_King@wistron.com> | Tue Apr 28 15:37:02 2020 +0800 |
committer | Bob King <Bob_King@wistron.com> | Thu May 14 17:35:24 2020 +0800 |
tree | c6d3342866b122bfaf5a1e962c1b817cc665cd6a | |
parent | f213432080eff9470c005535d6aa101e6d0662f8 [diff] [blame] |
regulators: Create regulators PMBusReadSensorAction class Create the PMBusReadSensorAction class that implements the "pmbus_read_sensor" action in the JSON config file. Only create the .hpp file for PMBusReadSensorAction class first. Signed-off-by: Bob King <Bob_King@wistron.com> Change-Id: I689ad9dbefe601d8962c694e7e1b8b7275ba6880
diff --git a/phosphor-regulators/src/actions/pmbus_write_vout_command_action.cpp b/phosphor-regulators/src/actions/pmbus_write_vout_command_action.cpp index 238e2f2..2a245a9 100644 --- a/phosphor-regulators/src/actions/pmbus_write_vout_command_action.cpp +++ b/phosphor-regulators/src/actions/pmbus_write_vout_command_action.cpp
@@ -81,8 +81,7 @@ ss << "volts: " << volts.value() << ", "; } - // Only linear format is currently supported - ss << "format: linear"; + ss << "format: " << pmbus_utils::toString(format); if (exponent.has_value()) {