Detect power current and energy sensors
Change-Id: I058eb1f3093a583ef21dd4be01d3fa535131fbde
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/mainloop.cpp b/mainloop.cpp
index 78d0b1a..7e579a8 100644
--- a/mainloop.cpp
+++ b/mainloop.cpp
@@ -46,6 +46,18 @@
hwmon::type::cvolt,
ValueInterface::Unit::Volts,
-3),
+ std::make_tuple(
+ hwmon::type::ccurr,
+ ValueInterface::Unit::Amperes,
+ -3),
+ std::make_tuple(
+ hwmon::type::cenergy,
+ ValueInterface::Unit::Joules,
+ -6),
+ std::make_tuple(
+ hwmon::type::cpower,
+ ValueInterface::Unit::Watts,
+ -6),
};
auto getHwmonType(decltype(typeAttrMap)::const_reference attrs)