Ignore display command with blank string (#1355)

This commit is contained in:
Kreg Hanning 2018-07-17 16:09:12 -04:00 committed by Eric Rosenbaum
parent c4ee7065a2
commit 2af04c43ea

View file

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