File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " meshcore"
7- version = " 2.1.22 "
7+ version = " 2.1.23 "
88authors = [
99 { name =" Florent de Lamotte" , email =" florent@frizoncorrea.fr" },
1010 { name =" Alex Wolden" , email =" awolden@gmail.com" },
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ async def handle_rx(self, data: bytearray):
181181 elif packet_type_value == 16 : # A reply to CMD_SYNC_NEXT_MESSAGE (ver >= 3)
182182 res = {}
183183 res ["type" ] = "PRIV"
184- res ["SNR" ] = int .from_bytes (dbuf .read (2 ), byteorder = "little" , signed = True ) / 4
185- dbuf .read (1 ) # reserved
184+ res ["SNR" ] = int .from_bytes (dbuf .read (1 ), byteorder = "little" , signed = True ) / 4
185+ dbuf .read (2 ) # reserved
186186 res ["pubkey_prefix" ] = dbuf .read (6 ).hex ()
187187 res ["path_len" ] = dbuf .read (1 )[0 ]
188188 txt_type = dbuf .read (1 )[0 ]
@@ -222,8 +222,8 @@ async def handle_rx(self, data: bytearray):
222222 elif packet_type_value == 17 : # A reply to CMD_SYNC_NEXT_MESSAGE (ver >= 3)
223223 res = {}
224224 res ["type" ] = "CHAN"
225- res ["SNR" ] = int .from_bytes (dbuf .read (2 ), byteorder = "little" , signed = True ) / 4
226- dbuf .read (1 ) # reserved
225+ res ["SNR" ] = int .from_bytes (dbuf .read (1 ), byteorder = "little" , signed = True ) / 4
226+ dbuf .read (2 ) # reserved
227227 res ["channel_idx" ] = dbuf .read (1 )[0 ]
228228 res ["path_len" ] = dbuf .read (1 )[0 ]
229229 res ["txt_type" ] = dbuf .read (1 )[0 ]
You can’t perform that action at this time.
0 commit comments