From 594bdd824824d77d87bf6d05eb3afe67f16dda0b Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 7 Nov 2019 14:21:08 +0100 Subject: [PATCH] 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 --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index 321914a..f88670f 100644 --- a/utils.py +++ b/utils.py @@ -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):