Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions validitysensor/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __repr__(self):

def get_flash_info():
rsp = tls.cmd(unhex('3e'))
if rsp[0] == 0x04:
return FlashInfo(None, 0, 0, 0, 0, [])
assert_status(rsp)
rsp = rsp[2:]
hdr = rsp[:0xe]
Expand Down
2 changes: 1 addition & 1 deletion validitysensor/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def send_init(self):
# c28c745a in response is a FwextBuildtime = 0x5A748CC2
rsp = self.cmd(unhexlify('4302')) # get_fw_info()

assert_status(self.cmd(init_hardcoded))
self.cmd(init_hardcoded)

(err, ), rsp = unpack('<H', rsp[:2]), rsp[2:]
if err != 0:
Expand Down