Skip to content

Commit

Permalink
dfu.py: use unsigned int for printsn
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-tenma-white committed Oct 31, 2020
1 parent 24ccaca commit 9898491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def read_serialNumber(ser):
print("Read timeout")
return None

sn = unpack_from("<iii", resp)
sn = unpack_from("<III", resp)
sn = f"{sn[0]:08x}-{sn[1]:08x}-{sn[2]:08x}"
return sn

Expand Down

0 comments on commit 9898491

Please sign in to comment.