Skip to content

Commit 8c22933

Browse files
committed
Changed TYPE to use constant TYPE_NAME
1 parent 0583616 commit 8c22933

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/toolbox/hardware_components/color_sensor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333
type: 'mrc_component',
3434
fields: {
3535
NAME: 'my_color_range_sensor',
36-
TYPE: 'ColorRangeSensor',
36+
TYPE: TYPE_NAME,
3737
},
3838
extraState: {
3939
importModule: 'rev_color_range_sensor',

src/toolbox/hardware_components/servo.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
* @fileoverview Servo hardware component definitions.
2020
* @author [email protected] (Alan Smith)
2121
*/
22-
23-
import * as Blockly from 'blockly/core';
24-
2522
import * as ToolboxItems from '../items';
2623

2724
export const TYPE_NAME = 'Servo';
@@ -35,7 +32,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3532
type: 'mrc_component',
3633
fields: {
3734
NAME: 'my_servo',
38-
TYPE: 'RevServo',
35+
TYPE: TYPE_NAME,
3936
},
4037
extraState: {
4138
importModule: 'rev_servo',

src/toolbox/hardware_components/smart_motor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333
type: 'mrc_component',
3434
fields: {
3535
NAME: 'my_motor',
36-
TYPE: 'SmartMotor',
36+
TYPE: TYPE_NAME,
3737
},
3838
extraState: {
3939
importModule: 'smart_motor',

src/toolbox/hardware_components/touch_sensor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getDefinitionBlock(hideParams: boolean): ToolboxItems.ContentsTy
3333
type: 'mrc_component',
3434
fields: {
3535
NAME: 'my_touch_sensor',
36-
TYPE: 'RevTouchSensor',
36+
TYPE: TYPE_NAME,
3737
},
3838
extraState: {
3939
importModule: 'rev_touch_sensor',

0 commit comments

Comments
 (0)