Skip to content

Commit 40749d8

Browse files
authored
Update test_atecc608.py
1 parent 43ddce3 commit 40749d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/test_atecc608.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
atecc608_lib = ctypes.CDLL('../build/libatecc608_handler.so')
77

88
# Define argument and return types for the functions
9-
atecc608_lib.atecc_handler_init.argtypes = [c_int]
9+
atecc608_lib.atecc_handler_init.argtypes = [c_int, c_int]
1010
atecc608_lib.atecc_handler_init.restype = c_int
1111

1212
atecc608_lib.atecc_handler_write_configuration.argtypes = [POINTER(c_uint8), c_size_t]
@@ -34,7 +34,7 @@ def print_hex_buffer(input):
3434
print(" ".join(f"{x:02X}" for x in input))
3535

3636
def write_atecc_config():
37-
status = atecc608_lib.atecc_handler_init(0xC0)
37+
status = atecc608_lib.atecc_handler_init(0xC0, 1)
3838
if status:
3939
print(f"atecc_handler_init Fail! {status}")
4040
return
@@ -51,7 +51,7 @@ def write_atecc_config():
5151
return
5252

5353
def general_test():
54-
status = atecc608_lib.atecc_handler_init(0xC0)
54+
status = atecc608_lib.atecc_handler_init(0xC0, 1)
5555
if status:
5656
print(f"atecc_handler_init Fail! {status}")
5757
return 0

0 commit comments

Comments
 (0)