Skip to content

Commit

Permalink
For 2-digits output
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier FAURAX <[email protected]>
  • Loading branch information
ofaurax committed Nov 8, 2024
1 parent 5441b09 commit 0307c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packethardware/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def get_mc_info(prop):
return (
__re_multiline_first(mc_info, regex[prop]).strip()
+ "."
+ str(int(get_mc_info("aux")[10:14], 16))
+ "{:02d}".format(int(get_mc_info("aux")[10:14], 16))
)

# firmware_version provides X.Y, aux 1st byte provides .Z
Expand Down

0 comments on commit 0307c4b

Please sign in to comment.