diff --git a/others/planck.py b/others/planck.py index 5c03404..1a8e393 100644 --- a/others/planck.py +++ b/others/planck.py @@ -6,9 +6,9 @@ import os import sys import operator -import ctypes +from ctypes import c_uint32 import platform -from struct import pack, unpack +from struct import pack_into, unpack_from RUNTIME_NAME = "Python {}".format(platform.python_version()) COPYRIGHT = "Copyright (c) 2021 Koichi Nakamura " @@ -39,13 +39,13 @@ def align(): write(HERE_CELL, aligned(read(HERE_CELL))) def readi(addr): - return unpack('