From 0f9dde0c4efc2a00acc06aebeb08d9b5dae425be Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 15 Sep 2016 23:49:14 -0700 Subject: [PATCH] convert event source/value into TD_ID shims --- libs/microbit/control.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/microbit/control.ts b/libs/microbit/control.ts index 7334212a..d6d14894 100644 --- a/libs/microbit/control.ts +++ b/libs/microbit/control.ts @@ -8,6 +8,7 @@ namespace control { * Returns the value of a C++ runtime constant */ //% weight=2 weight=19 blockId="control_event_source_id" block="%id" blockGap=8 + //% shim=TD_ID export function eventSourceId(id: EventBusSource): number { return id; } @@ -15,6 +16,7 @@ namespace control { * Returns the value of a C++ runtime constant */ //% weight=1 weight=19 blockId="control_event_value_id" block="%id" + //% shim=TD_ID export function eventValueId(id: EventBusValue): number { return id; }