mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 01:33:52 +08:00
CI: set PYTHONWARNINGS=error (#1323)
* CI: set PYTHONWARNINGS=error * update resetter * fix build warnings * bump jungle * fix one more * fix linter --------- Co-authored-by: Bruce Wayne <batman@comma.ai>
This commit is contained in:
@@ -612,9 +612,9 @@ class Panda:
|
||||
|
||||
@staticmethod
|
||||
def get_signature_from_firmware(fn) -> bytes:
|
||||
f = open(fn, 'rb')
|
||||
f.seek(-128, 2) # Seek from end of file
|
||||
return f.read(128)
|
||||
with open(fn, 'rb') as f:
|
||||
f.seek(-128, 2) # Seek from end of file
|
||||
return f.read(128)
|
||||
|
||||
def get_signature(self) -> bytes:
|
||||
part_1 = self._handle.controlRead(Panda.REQUEST_IN, 0xd3, 0, 0, 0x40)
|
||||
|
||||
Reference in New Issue
Block a user