dbus-sensors: enable INA230 current/power sensor.
Test: Verified that ipmitool displays sensor reading:
~# ipmitool sensor
Name1 Out | 0.000 | Amps ...
Name2 Out | 1.000 | Amps ...
Name1 Out | 0.000 | Watts ...
Name2 Out | 11.800 | Watts ...
Name1 Out | 12.000 | Volts ...
Name2 Out | 12.000 | Volts ...
Change-Id: I27ecfbe6a15385db4a48839b4f4cff24469c799a
Signed-off-by: Devjit Gopalpur <devjitg@google.com>
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index 2eb280f..d0e225b 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -29,9 +29,10 @@
static constexpr bool DEBUG = false;
-static constexpr std::array<const char*, 3> sensorTypes = {
+static constexpr std::array<const char*, 4> sensorTypes = {
"xyz.openbmc_project.Configuration.pmbus",
"xyz.openbmc_project.Configuration.MAX34451",
+ "xyz.openbmc_project.Configuration.INA230",
"xyz.openbmc_project.Configuration.ISL68137"};
static std::vector<std::string> pmbusNames = {"pmbus", "pxe1610", "ina219",