scripts: Allow encodeint.py to take integers in hex notation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3d73eaa582
commit
25107a3261
|
@ -10,7 +10,7 @@ import struct
|
|||
|
||||
def main():
|
||||
filename = sys.argv[1]
|
||||
value = int(sys.argv[2])
|
||||
value = int(sys.argv[2], 0)
|
||||
|
||||
outval = struct.pack('<Q', value)
|
||||
f = open(filename, 'wb')
|
||||
|
|
Loading…
Reference in New Issue