Skip to content

Conversation

@hbradio
Copy link
Contributor

@hbradio hbradio commented Jun 8, 2020

This wires up the "display message" block to actually send the command over Bluetooth.

@hbradio hbradio requested a review from cabarnes June 8, 2020 17:16
@hbradio hbradio self-assigned this Jun 8, 2020

test('handles setChainableRgbLed missing color', () => {
const setChainableRgbLedHandler = interpreter.createNativeFunction.mock.calls[6][0];
const setChainableRgbLedHandler = interpreter.createNativeFunction.mock.calls[7][0];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how this was passing before, but 7 is correct.


if (this.stepCode() && this.runningEnabled && !this.sleeping && !rover.isSending) {
setTimeout(this.runCode, 10);
setTimeout(this.runCode, 20);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seemed to help on the pxt side, and it didn't make a noticeable difference on the UI side.

@cabarnes cabarnes merged commit ef0c3d6 into alpha Jun 8, 2020
@cabarnes cabarnes deleted the display-message-block branch June 8, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants