emit enum as bitmask (#2414)

This commit is contained in:
Peli de Halleux 2019-09-03 13:48:43 -07:00 committed by GitHub
parent 37a1c27d58
commit a2c9d8dd2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}