Skip to content

Commit 374ed92

Browse files
committed
fixed big oppise
1 parent b82dd2f commit 374ed92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,15 @@ public static SparkFlex createSparkFlex(int id, MotorConfig motorConfig, SparkBa
153153
}
154154

155155
public static SparkBaseConfig createConfig(MotorControllerType type) {
156-
SparkBaseConfig config = type.createConfig();
156+
SparkBaseConfig config = null;
157+
switch(type){
158+
case SPARK_MAX:
159+
config = new SparkMaxConfig();
160+
break;
161+
case SPARK_FLEX:
162+
config = new SparkFlexConfig();
163+
break;
164+
}
157165
return config;
158166
}
159167

0 commit comments

Comments
 (0)