From a2c9d8dd2d00fbf749db2c2b6d7c4a6c2ba5b239 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 3 Sep 2019 13:48:43 -0700 Subject: [PATCH] emit enum as bitmask (#2414) --- libs/radio-broadcast/radio-broadcast.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/radio-broadcast/radio-broadcast.ts b/libs/radio-broadcast/radio-broadcast.ts index 289dc169..c8b71835 100644 --- a/libs/radio-broadcast/radio-broadcast.ts +++ b/libs/radio-broadcast/radio-broadcast.ts @@ -5,6 +5,7 @@ namespace radio { //% blockHidden=1 shim=ENUM_GET //% blockId=radioMessageCode block="$msg" enumInitialMembers="message1" //% enumName=RadioMessage enumMemberName=msg enumPromptHint="e.g. Start, Stop, Jump..." + //% enumIsHash=1 export function __message(msg: number): number { return msg; }