Skip to content

Commit 813c0b2

Browse files
committed
upd
1 parent 72f44b1 commit 813c0b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Hamming
2-
version=2.0.1
2+
version=2.0.2
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Library for pack and unpack data by Hamming algorithm

src/Hamming.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class Hamming3 {
377377
else data ^= (1 << sum);
378378
}
379379
}
380-
return (data >> 5) | ((data >> 3) & 1);
380+
return ((data >> 4) & 0b1110) | ((data >> 3) & 1);
381381
}
382382

383383
private:

0 commit comments

Comments
 (0)