mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] Revert to original Trigger implementation (#4673)
Trigger was refactored to use BooleanEvent when it was introduced in #4104. This reverts to the original implementation until edge-based BooleanEvents can be fixed.
This commit is contained in:
@@ -178,7 +178,7 @@ class TriggerTest extends CommandTestBase {
|
||||
InternalButton button = new InternalButton();
|
||||
Command command1 =
|
||||
new StartEndCommand(startCounter::incrementAndGet, endCounter::incrementAndGet)
|
||||
.until(button.rising());
|
||||
.until(button);
|
||||
|
||||
button.setPressed(false);
|
||||
command1.schedule();
|
||||
|
||||
Reference in New Issue
Block a user