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