PSUSensor: Add support for more current readings
Tested:
I have a max34451 with an iout14. Works with the following config
fragment:
"iout14_Name": "foo",
"iout14_Min": 0.0,
"iout14_Max": 30.0,
"Labels": ["iout14"],
"Type": "MAX34451"
Signed-off-by: Peter Lundgren <peterlundgren@google.com>
Change-Id: I7cfa06c4090f02dd869183412322ae98acd6d295
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index d0e4484..c5a7251 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -781,6 +781,17 @@
{"iout1", PSUProperty("Output Current", 255, 0, 3)},
{"iout2", PSUProperty("Output Current", 255, 0, 3)},
{"iout3", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout4", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout5", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout6", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout7", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout8", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout9", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout10", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout11", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout12", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout13", PSUProperty("Output Current", 255, 0, 3)},
+ {"iout14", PSUProperty("Output Current", 255, 0, 3)},
{"curr1", PSUProperty("Output Current", 255, 0, 3)},
{"temp1", PSUProperty("Temperature", 127, -128, 3)},
{"temp2", PSUProperty("Temperature", 127, -128, 3)},