From 2af04c43eac7cef50eeb3d7725b5cdca563d3525 Mon Sep 17 00:00:00 2001 From: Kreg Hanning Date: Tue, 17 Jul 2018 16:09:12 -0400 Subject: [PATCH] Ignore display command with blank string (#1355) --- src/extensions/scratch3_microbit/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 89dbd7799..698b81996 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -527,7 +527,7 @@ class Scratch3MicroBitBlocks { */ displayText (args) { const text = String(args.TEXT).substring(0, 19); - this._device.displayText(text); + if (text.length > 0) this._device.displayText(text); return Promise.resolve(); }