-
Notifications
You must be signed in to change notification settings - Fork 37
Feature EV3 firmware flash - minor improvements #2347
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
75dc627
yarn: patch @types/w3c-web-usb
dlech 37f4c11
usb/sagas: always set configuration
afarago 8936ba2
firmware/installPybricksDialog/hooks: dispatch error if no url
afarago 7b4b395
firmware/sagas: handle case of checksum-type == 'none'
dlech 373187b
firmware/sagas: fix race condition in EV3 sendCommand()
afarago 1d105ef
firmware/sagas: finish EV3 message ID TODO
dlech 311a833
firmware/installPybricksDialog: finish EV3 implementation
afarago ba9e2f5
firmware/sagas: fix missing error arg when unknown reason
dlech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
.yarn/patches/@types-w3c-web-usb-npm-1.0.10-82b33e05cb.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| diff --git a/index.d.ts b/index.d.ts | ||
| index b59810ce0fcaaf647830359010987348e11b0479..0f9d24ab390ac12010b671bc8aab02909e93fa89 100644 | ||
| --- a/index.d.ts | ||
| +++ b/index.d.ts | ||
| @@ -39,7 +39,7 @@ interface USBConnectionEventInit extends EventInit { | ||
|
|
||
| declare class USBConfiguration { | ||
| readonly configurationValue: number; | ||
| - readonly configurationName?: string | undefined; | ||
| + readonly configurationName: string | null; | ||
| readonly interfaces: USBInterface[]; | ||
| } | ||
|
|
||
| @@ -57,14 +57,14 @@ declare class USBAlternateInterface { | ||
| readonly interfaceClass: number; | ||
| readonly interfaceSubclass: number; | ||
| readonly interfaceProtocol: number; | ||
| - readonly interfaceName?: string | undefined; | ||
| + readonly interfaceName: string | null; | ||
| readonly endpoints: USBEndpoint[]; | ||
| } | ||
|
|
||
| declare class USBInTransferResult { | ||
| constructor(status: USBTransferStatus, data?: DataView); | ||
| readonly data?: DataView | undefined; | ||
| - readonly status?: USBTransferStatus | undefined; | ||
| + readonly status: USBTransferStatus; | ||
| } | ||
|
|
||
| declare class USBOutTransferResult { | ||
| @@ -76,7 +76,7 @@ declare class USBOutTransferResult { | ||
| declare class USBIsochronousInTransferPacket { | ||
| constructor(status: USBTransferStatus, data?: DataView); | ||
| readonly data?: DataView | undefined; | ||
| - readonly status?: USBTransferStatus | undefined; | ||
| + readonly status: USBTransferStatus; | ||
| } | ||
|
|
||
| declare class USBIsochronousInTransferResult { | ||
| @@ -140,10 +140,10 @@ declare class USBDevice { | ||
| readonly deviceVersionMajor: number; | ||
| readonly deviceVersionMinor: number; | ||
| readonly deviceVersionSubminor: number; | ||
| - readonly manufacturerName?: string | undefined; | ||
| - readonly productName?: string | undefined; | ||
| - readonly serialNumber?: string | undefined; | ||
| - readonly configuration?: USBConfiguration | undefined; | ||
| + readonly manufacturerName: string | null; | ||
| + readonly productName: string | null; | ||
| + readonly serialNumber: string | null; | ||
| + readonly configuration: USBConfiguration | null; | ||
| readonly configurations: USBConfiguration[]; | ||
| readonly opened: boolean; | ||
| open(): Promise<void>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,7 +173,8 @@ | |
| "react-error-overlay": "6.0.9", | ||
| "react-dev-utils@^12.0.1": "patch:react-dev-utils@npm:12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch", | ||
| "jsdom@^20.0.0": "patch:jsdom@npm%3A20.0.0#./.yarn/patches/jsdom-npm-20.0.0-9c1ad43ab8.patch", | ||
| "[email protected]": "patch:pyodide@npm%3A0.23.0#./.yarn/patches/pyodide-npm-0.23.0-64dc9bd6f1.patch" | ||
| "[email protected]": "patch:pyodide@npm%3A0.23.0#./.yarn/patches/pyodide-npm-0.23.0-64dc9bd6f1.patch", | ||
| "@types/w3c-web-usb@^1.0.10": "patch:@types/w3c-web-usb@npm%3A1.0.10#./.yarn/patches/@types-w3c-web-usb-npm-1.0.10-82b33e05cb.patch" | ||
| }, | ||
| "jest": { | ||
| "roots": [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.