mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[commands] Add pointer overload of AddRequirements (artf6003) (#3669)
Also update documentation in CommandBase.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "commands/GrabHatch.h"
|
||||
|
||||
GrabHatch::GrabHatch(HatchSubsystem* subsystem) : m_hatch(subsystem) {
|
||||
AddRequirements({subsystem});
|
||||
AddRequirements(subsystem);
|
||||
}
|
||||
|
||||
void GrabHatch::Initialize() {
|
||||
|
||||
Reference in New Issue
Block a user