mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Merge pull request #20 from cheetahdotcat/main
fixed reader.py missing byteorder
This commit is contained in:
commit
e92eb273d8
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue