Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 7626f30

Browse files
Update SparkMaxBrushedMotorSwerve.java
1 parent b0f8708 commit 7626f30

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/swervelib/motors/SparkMaxBrushedMotorSwerve.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ public SparkMaxConfig getConfig()
214214
*/
215215
public void updateConfig(SparkMaxConfig cfgGiven)
216216
{
217-
if (!DriverStation.isDisabled())
218-
{
219-
throw new RuntimeException("Configuration changes cannot be applied while the robot is enabled.");
220-
}
221217
cfg.apply(cfgGiven);
222218
configureSparkMax(() -> motor.configure(cfg, ResetMode.kNoResetSafeParameters, PersistMode.kPersistParameters));
223219
}
@@ -466,10 +462,6 @@ public void setInverted(boolean inverted)
466462
@Override
467463
public void burnFlash()
468464
{
469-
if (!DriverStation.isDisabled())
470-
{
471-
DriverStation.reportWarning("Config updates cannot be applied while the robot is Enabled!", false);
472-
}
473465
configureSparkMax(() -> {
474466
return motor.configure(cfg, ResetMode.kNoResetSafeParameters, PersistMode.kPersistParameters);
475467
});

0 commit comments

Comments
 (0)