Skip to content

Commit

Permalink
btchip: Give the major, minor, and patch versions separately
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Jun 8, 2020
1 parent ce5e095 commit fe0f82a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hwilib/devices/btchip/btchip.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,5 +397,8 @@ def getFirmwareVersion(self):
raise
result['compressedKeys'] = (response[0] == 0x01)
result['version'] = "%d.%d.%d" % (response[2], response[3], response[4])
result['major_version'] = response[2]
result['minor_version'] = response[3]
result['patch_version'] = response[4]
result['specialVersion'] = response[1]
return result

0 comments on commit fe0f82a

Please sign in to comment.