pre-commit: autoupdate hooks (#1536)

* Update pre-commit hook versions

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
This commit is contained in:
Adeeb Shihadeh
2023-08-01 11:14:27 -07:00
committed by GitHub
parent ed8ff7e48a
commit 1b706040cd
2 changed files with 2 additions and 2 deletions

View File

@@ -894,7 +894,7 @@ class Panda:
def serial_write(self, port_number, ln):
ret = 0
if type(ln) == str:
if isinstance(ln, str):
ln = bytes(ln, 'utf-8')
for i in range(0, len(ln), 0x20):
ret += self._handle.bulkWrite(2, struct.pack("B", port_number) + ln[i:i + 0x20])