mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
Merge pull request #20 from cheetahdotcat/main
fixed reader.py missing byteorder
This commit is contained in:
@@ -51,8 +51,8 @@ class MessageReader:
|
|||||||
c["public_key"] = data[1:33].hex()
|
c["public_key"] = data[1:33].hex()
|
||||||
c["type"] = data[33]
|
c["type"] = data[33]
|
||||||
c["flags"] = data[34]
|
c["flags"] = data[34]
|
||||||
c["out_path_len"] = int.from_bytes(data[35:36], signed=True)
|
c["out_path_len"] = int.from_bytes(data[35:36], signed=True, byteorder="little")
|
||||||
plen = int.from_bytes(data[35:36], signed=True)
|
plen = int.from_bytes(data[35:36], signed=True, byteorder="little")
|
||||||
if plen == -1:
|
if plen == -1:
|
||||||
plen = 0
|
plen = 0
|
||||||
c["out_path"] = data[36 : 36 + plen].hex()
|
c["out_path"] = data[36 : 36 + plen].hex()
|
||||||
|
|||||||
Reference in New Issue
Block a user