Skip to content

Commit 946c6fa

Browse files
committed
apply missing changes from PRs
1 parent 4e92c54 commit 946c6fa

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ public static CANSparkMax createSparkMax(int id, MotorErrors.TemperatureLimit te
8686
public static CANSparkMax createSparkMax(int id, int temperatureLimit) {
8787
CANSparkMax spark;
8888
if (RobotBase.isReal()) {
89-
spark = new CachedSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
90-
if (spark.getFirmwareVersion() == 0) {
91-
spark.close();
92-
System.err.println("SparkMax on port: " + id + " is not connected!");
93-
return MotorErrors.createDummySparkMax();
94-
}
89+
spark = new CANSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
9590
} else {
9691
spark = MockSparkMax.createMockSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
9792
}

0 commit comments

Comments
 (0)