mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Upgrading to 2025.7.2
This commit is contained in:
@@ -155,7 +155,7 @@ public class SparkFlexSwerve extends SwerveMotor
|
||||
{
|
||||
if (!DriverStation.isDisabled())
|
||||
{
|
||||
throw new RuntimeException("Configuration changes cannot be applied while the robot is enabled.");
|
||||
DriverStation.reportWarning("Configuration changes cannot be applied while the robot is enabled.", false);
|
||||
}
|
||||
cfg.apply(cfgGiven);
|
||||
configureSparkFlex(() -> motor.configure(cfg, ResetMode.kNoResetSafeParameters, PersistMode.kPersistParameters));
|
||||
@@ -392,10 +392,6 @@ public class SparkFlexSwerve extends SwerveMotor
|
||||
@Override
|
||||
public void burnFlash()
|
||||
{
|
||||
if (!DriverStation.isDisabled())
|
||||
{
|
||||
throw new RuntimeException("Config updates cannot be applied while the robot is Enabled!");
|
||||
}
|
||||
configureSparkFlex(() -> {
|
||||
return motor.configure(cfg, ResetMode.kNoResetSafeParameters, PersistMode.kPersistParameters);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user