action: use PDI type
Rather than define our own enumeration for the LED Actions,
reuse the one from Led.Physical's dbus interface.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4615bed9e87c61d2632fe790bd50892a7f51e2ab
diff --git a/manager/json-parser.hpp b/manager/json-parser.hpp
index 76d84c7..4388a21 100644
--- a/manager/json-parser.hpp
+++ b/manager/json-parser.hpp
@@ -62,8 +62,8 @@
{
assert(action == "On" || action == "Blink");
- return action == "Blink" ? phosphor::led::Layout::Blink
- : phosphor::led::Layout::On;
+ return action == "Blink" ? phosphor::led::Layout::Action::Blink
+ : phosphor::led::Layout::Action::On;
}
/** @brief Validate the Priority of an LED is same across ALL groups