Skip to content

Commit

Permalink
For 2-digits output
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 7, 2024
1 parent 73aa16e commit 3cae641
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 3cae641

Please sign in to comment.