diff options
Diffstat (limited to 'group.cpp')
-rw-r--r-- | group.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/group.cpp b/group.cpp new file mode 100644 index 0000000..8ed2ab0 --- /dev/null +++ b/group.cpp @@ -0,0 +1,21 @@ +#include <sdbusplus/message.hpp> +#include "group.hpp" +namespace phosphor +{ +namespace led +{ + +/** @brief Overloaded Property Setter function */ +bool Group::asserted(bool value) +{ + // Group management is handled by Manager + auto result = manager.setGroupState(path, value); + + // Set the base class's asserted to 'true' since the getter + // operation is handled there. + return sdbusplus::xyz::openbmc_project::Led::server:: + Group::asserted(result); +} + +} // namespace led +} // namespace phosphor |