mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Make setDefaultCommand public (#854)
This commit is contained in:
committed by
Peter Johnson
parent
40eb6dfc9b
commit
566e283694
@@ -90,7 +90,7 @@ public abstract class Subsystem extends SendableBase implements Sendable {
|
||||
* @param command the default command (or null if there should be none)
|
||||
* @throws IllegalUseOfCommandException if the command does not require the subsystem
|
||||
*/
|
||||
protected void setDefaultCommand(Command command) {
|
||||
public void setDefaultCommand(Command command) {
|
||||
if (command == null) {
|
||||
m_defaultCommand = null;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user