Skip to content

uf2: adapt to 0.17 API, add file tracking support - #994

Open
by965738071 wants to merge 8 commits into
ZigEmbeddedGroup:mainfrom
by965738071:uf2-file-tracking
Open

uf2: adapt to 0.17 API, add file tracking support#994
by965738071 wants to merge 8 commits into
ZigEmbeddedGroup:mainfrom
by965738071:uf2-file-tracking

Conversation

@by965738071

Copy link
Copy Markdown
Contributor

No description provided.

@Grazfather Grazfather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. I will test this out shortly

Comment thread tools/uf2/src/update_family_id.zig Outdated
@by965738071

Copy link
Copy Markdown
Contributor Author

@Grazfather I have removed the unused code.

Comment thread tools/uf2/src/uf2.zig Outdated
Comment thread tools/uf2/src/uf2.zig Outdated
Comment thread tools/uf2/src/uf2.zig
errdefer _ = self.blocks.pop();

const block = &self.blocks.items[self.blocks.len - 1];
const block = &self.blocks.items[self.blocks.items.len - 1];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How did this ever work?

Comment thread tools/uf2/src/uf2.zig Outdated
Comment thread tools/uf2/src/uf2.zig Outdated
…, simplify redundant if, use English comments

@Grazfather Grazfather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. A few nitpicks and a question about a test remain.

Comment thread tools/uf2/src/uf2.zig Outdated
Comment thread tools/uf2/src/uf2.zig Outdated
Comment thread tools/uf2/src/uf2.zig Outdated
this:
@as(FamilyId, @enumFromInt(0))
into this:
@as(FamilyId, @fromBackingInt(@intcast(0))).
I don’t  know why.
Comment thread tools/uf2/src/elf2uf2.zig Outdated

@Grazfather Grazfather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you. Looks good.

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.

2 participants