File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ export const pythonFromBlock = function (
157157}
158158
159159export 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 {
You can’t perform that action at this time.
0 commit comments