mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Add check for invalid symbol
This commit is contained in:
parent
94464f0a52
commit
9055706333
1 changed files with 1 additions and 0 deletions
|
@ -560,6 +560,7 @@ class Scratch3MicroBitBlocks {
|
|||
*/
|
||||
displaySymbol (args) {
|
||||
const hex = symbols2hex[args.SYMBOL];
|
||||
if (!hex) return;
|
||||
const output = new Uint8Array(6);
|
||||
output[0] = BLECommand.CMD_DISPLAY_LED;
|
||||
output[1] = (hex >> 20) & 0x1F;
|
||||
|
|
Loading…
Reference in a new issue