We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d84536f commit d3c1fcdCopy full SHA for d3c1fcd
source/docs/software/commandbased/convenience-features.rst
@@ -376,12 +376,12 @@ The ``withInterrupt()`` (`Java <https://first.wpi.edu/FRC/roborio/release/docs/j
376
.. code-tab:: java
377
378
// Will be interrupted if m_limitSwitch.get() returns true
379
- button.whenPressed(command.interruptOn(m_limitSwitch::get));
+ button.whenPressed(command.withInterrupt(m_limitSwitch::get));
380
381
.. code-tab:: c++
382
383
384
- button.WhenPressed(command.InterruptOn([&m_limitSwitch] { return m_limitSwitch.Get(); }));
+ button.WhenPressed(command.WithInterrupt([&m_limitSwitch] { return m_limitSwitch.Get(); }));
385
386
whenFinished
387
^^^^^^^^^^^^
0 commit comments