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 2855c8f
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 2855c8f

Please sign in to comment.