From 6fa3276c4ff631739ad4f89d7e3e499e0801f89f Mon Sep 17 00:00:00 2001 From: Liz Looney Date: Wed, 22 Oct 2025 21:01:57 -0700 Subject: [PATCH 1/2] Fixed the mrc_port block in test_category.ts. --- src/toolbox/test_category.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/toolbox/test_category.ts b/src/toolbox/test_category.ts index 04bc1701..ba08a754 100644 --- a/src/toolbox/test_category.ts +++ b/src/toolbox/test_category.ts @@ -24,10 +24,13 @@ export function getCategory(): toolboxItems.Category { kind: 'block', type: 'mrc_port', extraState: { - ports: [ - { portType: 'USB Port', portNumber: 1 }, - { portType: 'Expansion Hub Motor Port', portNumber: 2 }, - ], + portType: 'EXPANSION_HUB_SERVO' + }, + fields: { + TYPE_0: 'usb', + PORT_NUM_0: '1', + TYPE_1: 'servo', + PORT_NUM_1: '1' }, }); From d59b347793a3a76b1ed8345050d9ec1fbe63f0a7 Mon Sep 17 00:00:00 2001 From: Liz Looney Date: Wed, 22 Oct 2025 21:03:01 -0700 Subject: [PATCH 2/2] Removed the mrc_port block from test_category.ts. --- src/toolbox/test_category.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/toolbox/test_category.ts b/src/toolbox/test_category.ts index ba08a754..f46179a3 100644 --- a/src/toolbox/test_category.ts +++ b/src/toolbox/test_category.ts @@ -20,20 +20,6 @@ export function getCategory(): toolboxItems.Category { addBuiltInFunctionBlocks([printFunction], contents); - contents.push({ - kind: 'block', - type: 'mrc_port', - extraState: { - portType: 'EXPANSION_HUB_SERVO' - }, - fields: { - TYPE_0: 'usb', - PORT_NUM_0: '1', - TYPE_1: 'servo', - PORT_NUM_1: '1' - }, - }); - return { kind: 'category', name: Blockly.Msg['MRC_CATEGORY_TEST'],