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 14, 2023
1 parent c65bafe commit 63fa17b
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 >>= 8;
const bState = data.readUInt8(4);

return {
Expand Down

0 comments on commit 63fa17b

Please sign in to comment.