Skip to content

Commit

Permalink
fixed oversized msg test
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 committed Jun 12, 2024
1 parent 4d88efd commit 64233e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_jikong_bms.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ async def write_gatt_char(
assert self._notify_callback is not None
self._notify_callback(
"MockJikongBleakClient", bytearray(b"\x41\x54\x0d\x0a")
) # # interleaced AT\r\n command
) # interleaved AT\r\n command
resp = self._response(char_specifier, data)
for notify_data in [resp[i : i + 30] for i in range(0, len(resp), 30)]:
for notify_data in [resp[i : i + 29] for i in range(0, len(resp), 29)]:
self._notify_callback("MockJikongBleakClient", notify_data)

class JKservice(BleakGATTService):
Expand Down

0 comments on commit 64233e3

Please sign in to comment.