File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66atecc608_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 ]
1010atecc608_lib .atecc_handler_init .restype = c_int
1111
1212atecc608_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
3636def 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
5353def 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
You can’t perform that action at this time.
0 commit comments