-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Show customized alerts on hardware extension peripheral errors. #1607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
| 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.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
rschamp
left a comment
There was a problem hiding this 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.
|
Great! Will wait for scratchfoundation/scratch-gui#3209 to land to merge this. Thanks. |
|
I think you want to merge in the other order, don't you? After you land this one, wait for the new |
|
Oh, I see! I had not done that process yet myself, but I will try it now for these PRs, thanks. |
Resolves
This is progress towards: scratchfoundation/scratch-gui#2956.
Proposed Changes
Shows customized alerts for peripheral errors/disconnections including extension icon and name.
Reason for Changes
To warn the user that a peripheral has disconnected and blocks may no longer work.
Notes