Skip to content

Commit

Permalink
Use latest SOEM pysoem_patch
Browse files Browse the repository at this point in the history
* SOEM needs the compile switch USE_SOEM_CONFIG_H on, when used for PySOEM
  • Loading branch information
bnjmnp committed Dec 9, 2024
1 parent 19dfa12 commit a910fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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'),
Expand Down Expand Up @@ -62,7 +63,7 @@ def readme():
with open('README.rst') as f:
return f.read()


here = os.path.abspath(os.path.dirname(__file__))


Expand Down
2 changes: 1 addition & 1 deletion soem
Submodule soem updated 1 files
+18 −2 soem/ethercattype.h

0 comments on commit a910fcf

Please sign in to comment.