Skip to content

Commit

Permalink
Read bStatusWithPollTimeout correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Aug 7, 2023
1 parent 49009a1 commit e71a212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfu.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class Dfu {
let bStatusWithPollTimeout = data.readUInt32LE(0);

const bStatus = (bStatusWithPollTimeout & 0xff);
bStatusWithPollTimeout &= ~(0xff);
bStatusWithPollTimeout = data.getUint32(1, true) & 0xFFFFFF;
const bState = data.readUInt8(4);

return {
Expand Down

0 comments on commit e71a212

Please sign in to comment.