From a910fcfbd84946e3d75478bd6fc585143995b883 Mon Sep 17 00:00:00 2001 From: bnjmnp Date: Mon, 9 Dec 2024 20:53:57 +0100 Subject: [PATCH] Use latest SOEM pysoem_patch * SOEM needs the compile switch USE_SOEM_CONFIG_H on, when used for PySOEM --- setup.py | 5 +++-- soem | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 7009ea6..86a9f30 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ elif sys.platform.startswith('linux'): soem_macros = [] soem_lib_dirs = [] - soem_libs = ['pthread', 'rt'] + soem_libs = ['pthread', 'rt'] os_name = 'linux' elif sys.platform.startswith('darwin'): soem_macros = [] @@ -35,6 +35,7 @@ os_name = 'macosx' soem_macros.append(('EC_VER2', '')) +soem_macros.append(('USE_SOEM_CONFIG_H', '')) soem_sources.extend([os.path.join('.', 'soem', 'osal', os_name, 'osal.c'), os.path.join('.', 'soem', 'oshw', os_name, 'oshw.c'), @@ -62,7 +63,7 @@ def readme(): with open('README.rst') as f: return f.read() - + here = os.path.abspath(os.path.dirname(__file__)) diff --git a/soem b/soem index b20fe93..cb9d9f4 160000 --- a/soem +++ b/soem @@ -1 +1 @@ -Subproject commit b20fe93cb54de4614682125e2ad7ef7c8f4bf75a +Subproject commit cb9d9f4bd91e965562df49e7979df06f98b99b58