mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
fix(adb): incorrect endianness in delayed ack
This commit is contained in:
parent
f83ea20291
commit
0424dd703f
5 changed files with 9 additions and 8 deletions
|
@ -4,7 +4,7 @@ import {
|
|||
delay,
|
||||
} from "@yume-chan/async";
|
||||
import {
|
||||
getUint32BigEndian,
|
||||
getUint32LittleEndian,
|
||||
setUint32LittleEndian,
|
||||
} from "@yume-chan/no-data-view";
|
||||
import {
|
||||
|
@ -193,7 +193,7 @@ export class AdbPacketDispatcher implements Closeable {
|
|||
"Invalid OKAY packet. Payload size should be 4",
|
||||
);
|
||||
}
|
||||
ackBytes = getUint32BigEndian(packet.payload, 0);
|
||||
ackBytes = getUint32LittleEndian(packet.payload, 0);
|
||||
} else {
|
||||
if (packet.payload.byteLength !== 0) {
|
||||
throw new Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue