Add fan_pwm to the possible sensors
Add fan PWM output to the list of supported sensor types.
Change-Id: Ia0c7970934fe403d4e6e0142af78b7815bcff0c9
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/virtualSensor.cpp b/virtualSensor.cpp
index e74ed4c..081408b 100644
--- a/virtualSensor.cpp
+++ b/virtualSensor.cpp
@@ -790,6 +790,7 @@
std::map<std::string, ValueIface::Unit> unitMap = {
{"temperature", ValueIface::Unit::DegreesC},
{"fan_tach", ValueIface::Unit::RPMS},
+ {"fan_pwm", ValueIface::Unit::Percent},
{"voltage", ValueIface::Unit::Volts},
{"altitude", ValueIface::Unit::Meters},
{"current", ValueIface::Unit::Amperes},