diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-10 14:39:20 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-24 20:25:35 +0000 |
commit | 4fa924801a0b751d4e59c1d2fd59a8f578590088 (patch) | |
tree | 9f561aa737f89cfb1503e7ad2ce2f56e340bf1d5 /manager.hpp | |
parent | 76f58348314324aa06aac8b0cfe13c756ed58730 (diff) | |
download | phosphor-led-manager-4fa924801a0b751d4e59c1d2fd59a8f578590088.tar.gz phosphor-led-manager-4fa924801a0b751d4e59c1d2fd59a8f578590088.zip |
Use physical LED actions from generated code
Today's code returned a hardcoded string for physical LED action
and this patch uses the generated string for the passed in action enum
Fixes openbmc/phosphor-led-manager#2
Change-Id: I960e2d4346966caee526e1a0e8713e18d34b428a
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'manager.hpp')
-rw-r--r-- | manager.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manager.hpp b/manager.hpp index 8dbbcd6..4adb229 100644 --- a/manager.hpp +++ b/manager.hpp @@ -97,7 +97,7 @@ class Manager * * @return string equivalent of the passed in enumeration */ - static const char* const getPhysicalAction(Layout::Action action); + static std::string getPhysicalAction(Layout::Action action); /** @brief Chooses appropriate action to be triggered on physical LED * and calls into function that applies the actual action. |