This commit is contained in:
2025-12-04 16:47:02 +08:00
parent 125c897e85
commit 69530188e4

View File

@@ -18,7 +18,7 @@ print("Initialize OK")
# Get device count # Get device count
device_count = ctypes.c_longlong(0) device_count = ctypes.c_longlong(0)
ret = atcore.AT_GetInt(AT_HANDLE_SYSTEM, "Device Count", ctypes.byref(device_count)) ret = atcore.AT_GetInt(AT_HANDLE_SYSTEM, ctypes.c_wchar_p("Device Count"), ctypes.byref(device_count))
if ret != AT_SUCCESS: if ret != AT_SUCCESS:
print(f"ERROR: Get device count failed, code: {ret}") print(f"ERROR: Get device count failed, code: {ret}")
else: else: