Merge branch 'Eng1n33r:dev' into 420

This commit is contained in:
RogueMaster
2022-09-26 13:09:20 -04:00
committed by GitHub
57 changed files with 3339 additions and 1640 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ class Main(App):
@staticmethod
def int2ffhex(value: int, n_hex_syms=8):
if value:
n_hex_syms = math.ceil(math.ceil(math.log2(value)) / 8) * 2
n_hex_syms = max(math.ceil(math.ceil(math.log2(value)) / 8) * 2, n_hex_syms)
fmtstr = f"%0{n_hex_syms}X"
hexstr = fmtstr % value
return " ".join(list(Main.batch(hexstr, 2))[::-1])