Merge change 4698
* changes: Fix bug in BluetoothInputStream.read().
This commit is contained in:
@@ -59,7 +59,7 @@ import java.io.InputStream;
|
||||
byte b[] = new byte[1];
|
||||
int ret = mSocket.readNative(b, 0, 1);
|
||||
if (ret == 1) {
|
||||
return (int)b[0];
|
||||
return (int)b[0] & 0xff;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user