Skip to content

Commit

Permalink
fix: server freeze when using bus converter
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Nov 21, 2023
1 parent bb8d8cf commit 59590bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ public static byte[] unpackDigital(byte[] signal, int packed) {

public static int mostSignificantBit(int mask) {
int idx = 0;
int m2 = mask >> 1;
int m2 = mask >>> 1;
while (m2 != 0) {
m2 >>= 1;
m2 >>>= 1;
idx++;
}
return idx;
Expand Down

0 comments on commit 59590bc

Please sign in to comment.