emit enum as bitmask (#2414)
This commit is contained in:
parent
37a1c27d58
commit
a2c9d8dd2d
@ -5,6 +5,7 @@ namespace radio {
|
|||||||
//% blockHidden=1 shim=ENUM_GET
|
//% blockHidden=1 shim=ENUM_GET
|
||||||
//% blockId=radioMessageCode block="$msg" enumInitialMembers="message1"
|
//% blockId=radioMessageCode block="$msg" enumInitialMembers="message1"
|
||||||
//% enumName=RadioMessage enumMemberName=msg enumPromptHint="e.g. Start, Stop, Jump..."
|
//% enumName=RadioMessage enumMemberName=msg enumPromptHint="e.g. Start, Stop, Jump..."
|
||||||
|
//% enumIsHash=1
|
||||||
export function __message(msg: number): number {
|
export function __message(msg: number): number {
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user