Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8edae3df authored by Nick Pelly's avatar Nick Pelly
Browse files

Fix bug in BluetoothInputStream.read().

InputStream.read() must return values in range [0, 255]. But the previous code
would sign extend when casting to int so return [-128, 127]. Bitwise AND with
0xff to remove sign extension.
parent e4839c43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment