utils.py: cosmetic: add comment to int_to_list()

It may not be immediately obvious what int_to_list() does, lets add a
comment to clarify

elated: SYS#4466
Change-Id: I82639a7333c3d805f6242aa58a3d42800a804820
This commit is contained in:
Philipp Maier 2019-11-07 14:21:08 +01:00
parent 8e427d0b68
commit 594bdd8248
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ def swap_nibbles(array):
def list_to_int(arr):
return int(hexdump(arr), 16)
# Encode an integer number into list of bytes (e.g. 1025 becomes [4, 1])
def int_to_list(inp, num_bytes):
out = []
for i in range(0, num_bytes):