Skip to content

Commit ed78b8f

Browse files
authored
Merge pull request #48 from DeepBlueRobotics/remove-sparkmax-unplugged-handler
Remove SparkMax Unplugged Handler
2 parents 9547d55 + ea18e73 commit ed78b8f

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,8 @@ public static CANSparkMax createSparkMax(int id, MotorConfig config) {
121121
CANSparkMax spark;
122122
if (RobotBase.isReal()) {
123123
spark = new CANSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
124-
if (spark.getFirmwareVersion() == 0) {
125-
spark.close();
126-
System.err.println("SparkMax on port: " + id + " is not connected!");
127-
return MotorErrors.createDummySparkMax();
128-
}
129124
} else {
130-
spark = MockSparkMax.createMockSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
125+
spark = MockSparkMax.createMockSparkMax(id, CANSparkMaxLowLevel.MotorType.kBrushless);
131126
}
132127

133128
MotorErrors.reportSparkMaxTemp(spark, config.temperatureLimit);

0 commit comments

Comments
 (0)