Skip to content

Commit fe0f82a

Browse files
committed
btchip: Give the major, minor, and patch versions separately
1 parent ce5e095 commit fe0f82a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hwilib/devices/btchip/btchip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,5 +397,8 @@ def getFirmwareVersion(self):
397397
raise
398398
result['compressedKeys'] = (response[0] == 0x01)
399399
result['version'] = "%d.%d.%d" % (response[2], response[3], response[4])
400+
result['major_version'] = response[2]
401+
result['minor_version'] = response[3]
402+
result['patch_version'] = response[4]
400403
result['specialVersion'] = response[1]
401404
return result

0 commit comments

Comments
 (0)