mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[commands] Allow BooleanSupplier for Trigger operations (#4103)
This commit is contained in:
@@ -35,7 +35,7 @@ class Trigger {
|
||||
*
|
||||
* @param isActive Whether the trigger is active.
|
||||
*/
|
||||
explicit Trigger(std::function<bool()> isActive)
|
||||
Trigger(std::function<bool()> isActive) // NOLINT
|
||||
: m_isActive{std::move(isActive)} {}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user