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:
parent
8e427d0b68
commit
594bdd8248
2
utils.py
2
utils.py
|
@ -72,6 +72,8 @@ def swap_nibbles(array):
|
||||||
def list_to_int(arr):
|
def list_to_int(arr):
|
||||||
return int(hexdump(arr), 16)
|
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):
|
def int_to_list(inp, num_bytes):
|
||||||
out = []
|
out = []
|
||||||
for i in range(0, num_bytes):
|
for i in range(0, num_bytes):
|
||||||
|
|
Loading…
Reference in New Issue