From 04b822c3aa79f47e593fdb020c0b95d9975c6b1f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 21 Apr 2019 12:24:06 -0400 Subject: [PATCH] chelper: Use standard C type definition for pyhelper_logging_callback Signed-off-by: Kevin O'Connor --- klippy/chelper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py index e0db5edd..ed2ae457 100644 --- a/klippy/chelper/__init__.py +++ b/klippy/chelper/__init__.py @@ -232,7 +232,7 @@ def get_ffi(): def logging_callback(msg): logging.error(FFI_main.string(msg)) pyhelper_logging_callback = FFI_main.callback( - "void(const char *)", logging_callback) + "void func(const char *)", logging_callback) FFI_lib.set_python_logging_callback(pyhelper_logging_callback) return FFI_main, FFI_lib