Fixing linting errors.

This commit is contained in:
unknown 2019-03-07 08:38:52 -05:00
parent 0a9f629fb4
commit c603e0d653

View file

@ -130,14 +130,14 @@ class MicroBit {
/**
* A task queue to limit the rate of Bluetooth message sends by limiting
* the rate of execution of blocks which send Bluetooth messages.
*
*
* The bucket in this task queue holds 1 task at a time, and refills
* at a rate of 10 tasks per second, from a queue that holds tasks with
* a maximum total cost of 30. Since most tasks have a cost of 1 this
* means the queue will generally have at most 30 tasks. If more than 30
* tasks are added to the task queue in a short period, some tasks may
* be rejected (ignored) by the task queue.
*
*
* @type {TaskQueue}
*/
this._queue = new TaskQueue(1, 10, {maxTotalCost: 30});
@ -814,7 +814,7 @@ class Scratch3MicroBitBlocks {
this._peripheral.ledMatrixState[3] = (hex >> 15) & 0x1F;
this._peripheral.ledMatrixState[4] = (hex >> 20) & 0x1F;
this._peripheral.displayMatrix(this._peripheral.ledMatrixState);
}).catch(e => {
}).catch(() => {
// console.log('*** CATCH DISPLAY_SYMBOL REJECTION');
// console.log(e);
});
@ -842,7 +842,7 @@ class Scratch3MicroBitBlocks {
resolve();
}, yieldDelay);
});
}).catch(e => {
}).catch(() => {
// console.log('*** CATCH DISPLAY_TEXT REJECTION');
// console.log(e);
});
@ -858,7 +858,7 @@ class Scratch3MicroBitBlocks {
this._peripheral.ledMatrixState[i] = 0;
}
this._peripheral.displayMatrix(this._peripheral.ledMatrixState);
}).catch(e => {
}).catch(() => {
// console.log('*** CATCH DISPLAY_CLEAR REJECTION');
// console.log(e);
});