Vishwanatha Subbanna | 4c8c72b | 2016-11-29 23:02:06 +0530 | [diff] [blame] | 1 | #include <sdbusplus/message.hpp> |
| 2 | #include "group.hpp" |
| 3 | namespace phosphor |
| 4 | { |
| 5 | namespace led |
| 6 | { |
| 7 | |
| 8 | /** @brief Overloaded Property Setter function */ |
| 9 | bool Group::asserted(bool value) |
| 10 | { |
| 11 | // Group management is handled by Manager |
| 12 | auto result = manager.setGroupState(path, value); |
| 13 | |
| 14 | // Set the base class's asserted to 'true' since the getter |
| 15 | // operation is handled there. |
| 16 | return sdbusplus::xyz::openbmc_project::Led::server:: |
| 17 | Group::asserted(result); |
| 18 | } |
| 19 | |
| 20 | } // namespace led |
| 21 | } // namespace phosphor |