Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Change header check constant to hex #9

Merged
merged 4 commits into from
Jan 15, 2019
Merged

Change header check constant to hex #9

merged 4 commits into from
Jan 15, 2019

Conversation

majorhayes
Copy link
Collaborator

Just changes the USB packet header constant change to be hex and remove the FIXME from the comment.

src/webUSBDevice.ts Outdated Show resolved Hide resolved
Christopher and others added 2 commits January 15, 2019 14:39
@@ -77,10 +77,10 @@ export default class WebUSBDevice extends Device {
protected async read (): Promise<ByteBuffer> {
let first = await this.readChunk()

// FIXME: assert that buffer starts with: [ 0x3f, 0x23, 0x23 ]
const valid = first.getUint32(0) === 1059267328
// Check that buffer starts with: [ 0x3f, 0x23, 0x23, 0x00 ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Check that buffer starts with: [ 0x3f, 0x23, 0x23, 0x00 ]
// Check that buffer starts with: [ 0x3f, 0x23, 0x23 ]

Copy link
Contributor

@keepkeyjon keepkeyjon left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@majorhayes majorhayes merged commit e84e860 into master Jan 15, 2019
@keepkeyjon keepkeyjon deleted the header-constant branch January 25, 2019 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants