Skip to content

Commit c3e2d21

Browse files
committed
Removed duplicate case for 'SMART_MOTOR_PORT' in function createPort.
Changed 'unknown:' to 'unknown'.
1 parent 65f1563 commit c3e2d21

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/blocks/mrc_port.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export const pythonFromBlock = function (
157157
}
158158

159159
export function createPort(portType : string) {
160-
//TODO: Based off of the port type, create the right number and type of ports
160+
// Based off of the port type, create the right number and type of ports
161161
const ports : MrcPortType[] = [];
162162
switch(portType){
163163
case 'CAN_PORT':
@@ -184,9 +184,6 @@ export function createPort(portType : string) {
184184
case 'EXPANSION_HUB_SERVO_PORT':
185185
ports.push({ portType: 'servo', portNumber: 1 });
186186
break;
187-
case 'SMART_MOTOR_PORT':
188-
ports.push({ portType: 'MotionCore port', portNumber: 1 });
189-
break;
190187
case 'USB_HUB':
191188
ports.push({ portType: 'usb in', portNumber: 1 });
192189
ports.push({ portType: 'usb out', portNumber: 1 });
@@ -200,7 +197,7 @@ export function createPort(portType : string) {
200197
ports.push({ portType: 'servo', portNumber: 1 });
201198
break;
202199
default:
203-
ports.push({ portType: 'unknown:' + portType, portNumber: 1 });
200+
ports.push({ portType: 'unknown' + portType, portNumber: 1 });
204201
break;
205202
}
206203
return {

0 commit comments

Comments
 (0)