Update physical LEDs as part of Lamp test
- Add the getSubTreePaths method for utils and update all physical
LEDs.
- Uses GetSubTreePath on Physical LED paths and interfaces and
updates all the LEDs to ON as part of start or restart of the test.
- When the lamp test is stopped or the timer expires, all the LEDs
are turned OFF.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I27727db62fe963a1a7c8b391d73801bcaf9efeec
diff --git a/group.hpp b/group.hpp
index bb21fb6..57c33d9 100644
--- a/group.hpp
+++ b/group.hpp
@@ -39,7 +39,7 @@
*/
Group(sdbusplus::bus::bus& bus, const std::string& objPath,
Manager& manager, Serialize& serialize,
- std::function<void(bool)> callBack = nullptr) :
+ std::function<void(Group*, bool)> callBack = nullptr) :
sdbusplus::server::object::object<
sdbusplus::xyz::openbmc_project::Led::server::Group>(
@@ -76,7 +76,7 @@
/** @brief Custom callback when LED group is asserted
*/
- std::function<void(bool)> customCallBack;
+ std::function<void(Group*, bool)> customCallBack;
};
} // namespace led