Skip to content

Conversation

@evhan55
Copy link
Contributor

@evhan55 evhan55 commented Sep 22, 2018

Resolves

This is progress towards: scratchfoundation/scratch-gui#2956.

Proposed Changes

Shows customized alerts for peripheral errors/disconnections including extension icon and name.

screen shot 2018-09-22 at 5 40 22 pm

Reason for Changes

To warn the user that a peripheral has disconnected and blocks may no longer work.

Notes

this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR, {
message: `Scratch lost connection to`,
extensionId: this._extensionId

This comment was marked as abuse.

This comment was marked as abuse.

this.disconnect();
// log.error(`BLE error: ${JSON.stringify(e)}`);
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR, {

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Contributor

@rschamp rschamp left a comment

Choose a reason for hiding this comment

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

Like we discussed off-thread, let's address these in a follow-up.

@rschamp rschamp assigned evhan55 and unassigned rschamp Sep 25, 2018
@evhan55
Copy link
Contributor Author

evhan55 commented Sep 25, 2018

Great! Will wait for scratchfoundation/scratch-gui#3209 to land to merge this. Thanks.

@rschamp
Copy link
Contributor

rschamp commented Sep 25, 2018

I think you want to merge in the other order, don't you? After you land this one, wait for the new scratch-vm version to be published, then bump to that version of scratch-vm in scratchfoundation/scratch-gui#3209 and merge that, so scratch-gui builds with the version of scratch-vm it needs?

@evhan55
Copy link
Contributor Author

evhan55 commented Sep 25, 2018

Oh, I see! I had not done that process yet myself, but I will try it now for these PRs, thanks.

@evhan55 evhan55 merged commit a676970 into scratchfoundation:develop Sep 25, 2018
@evhan55 evhan55 deleted the multiple-alerts branch October 10, 2018 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants