Add presence gpio to CPU
This adds presence support
Change-Id: I25c662ee21136ebf15e0f05de86b032fc76af031
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/configurations/WFT Baseboard.json b/configurations/WFT Baseboard.json
index 78a8393..8be42b2 100644
--- a/configurations/WFT Baseboard.json
+++ b/configurations/WFT Baseboard.json
@@ -2161,6 +2161,7 @@
"Bus": 0,
"CpuID": 1,
"Name": "CPU 1",
+ "PresenceGpio": 232,
"Thresholds": [
{
"Direction": "greater than",
@@ -2184,6 +2185,7 @@
"Bus": 0,
"CpuID": 2,
"Name": "CPU 2",
+ "PresenceGpio": 242,
"Thresholds": [
{
"Direction": "greater than",
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index 3fdb554..3d30068 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -355,8 +355,8 @@
{
std::vector<std::filesystem::path> paths;
- if (!findFiles(std::filesystem::path(TEMPLATE_DIR),
- R"(.*\.template)", paths))
+ if (!findFiles(std::filesystem::path(TEMPLATE_DIR), R"(.*\.template)",
+ paths))
{
std::cerr << "Unable to find any tempate files in " << TEMPLATE_DIR
<< "\n";