yosemitev2:Add multi-host critical sensor support
This feature adds the host critical sensor support for
Facebook Yosemitev2 platform.
Tested: Critical sensor value displayed in the
OCP debug card with multi-host Yosemitev2 platform.
Signed-off-by: Karthikeyan Pasupathi <p_karthikeya@hcl.com>
Change-Id: Ia77af76ac4e07435e7ed6287be8806efcd3ff86b
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index d06bb17..ea5da82 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -337,6 +337,20 @@
return rc;
}
+bool isMultiHostPlatform()
+{
+ bool platform;
+ if (INSTANCES == "0")
+ {
+ platform = false;
+ }
+ else
+ {
+ platform = true;
+ }
+ return platform;
+}
+
// return code: 0 successful
int8_t getFruData(std::string& data, std::string& name)
{