From 24d5d6d2a72c52b817e5db120836af385a0d45ef Mon Sep 17 00:00:00 2001 From: thsparks Date: Fri, 14 Mar 2025 15:52:02 -0700 Subject: [PATCH] Fix radio extension's "more" toolbox display The raiseEvent block was referencing block ids control_event_source_id and control_event_value_id which don't exist in common packages. I didn't remove the code completely in case anyone already has this block in their project, but I don't think we need to show it. In live, it's already basically impossible to access because it messes up the toolbox load. One unknown is if this is needed by micro:bit, which does actually have the block ids. If that's the case, correct fix may be to actually bring the missing block into common packages instead. This is an auto-generated change based on a change in pxt-common-packages branch thsparks/fix_radio_more --- libs/radio/shims.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/radio/shims.d.ts b/libs/radio/shims.d.ts index 6df6da4284..0d9fea1d68 100644 --- a/libs/radio/shims.d.ts +++ b/libs/radio/shims.d.ts @@ -22,11 +22,12 @@ declare namespace radio { /** * Sends an event over radio to neigboring devices */ - //% blockId=radioRaiseEvent block="radio raise event|from source %src=control_event_source_id|with value %value=control_event_value_id" + //% blockId=radioRaiseEvent block="radio raise event|from source %src|with value %value" //% blockExternalInputs=1 //% advanced=true //% weight=1 - //% help=radio/raise-event shim=radio::raiseEvent + //% help=radio/raise-event + //% blockHidden=1 shim=radio::raiseEvent function raiseEvent(src: int32, value: int32): void; /**