Skip to content

Commit d256a22

Browse files
committed
2jciebu01: remove attribute specifier from common header and update swig interfaces
Signed-off-by: Mihai Tudor Panu <[email protected]>
1 parent 9cddd4a commit d256a22

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

src/2jciebu01-ble/2jciebu01_ble.i

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
#ifdef SWIGPYTHON
2+
%module (package="upm") 2jciebu01_ble
3+
#endif
4+
15
%include "../common_top.i"
26

7+
/* BEGIN Java syntax ------------------------------------------------------- */
8+
#ifdef SWIGJAVA
9+
JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_ble)
10+
#endif
11+
/* END Java syntax */
12+
313
/* BEGIN Common SWIG syntax ------------------------------------------------- */
414
%{
515
#include "2jciebu01_ble.hpp"
16+
#include "2jciebu01.hpp"
617
%}
18+
719
%include "2jciebu01_ble.hpp"
20+
%include "2jciebu01.hpp"
21+
822
/* END Common SWIG syntax */

src/2jciebu01-usb/2jciebu01.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public :
137137
int16_t eCO2;
138138
int16_t discomfort_index;
139139
int16_t heat_stroke;
140-
} __attribute__((packed))om2jciebuData_t;
140+
} om2jciebuData_t;
141141

142142
/**
143143
* OM2JCIEBU destructor

src/2jciebu01-usb/2jciebu01_usb.i

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
#ifdef SWIGPYTHON
2+
%module (package="upm") 2jciebu01_usb
3+
#endif
4+
15
%include "../common_top.i"
26

7+
/* BEGIN Java syntax ------------------------------------------------------- */
8+
#ifdef SWIGJAVA
9+
JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_usb)
10+
#endif
11+
/* END Java syntax */
12+
313
/* BEGIN Common SWIG syntax ------------------------------------------------- */
414
%{
515
#include "2jciebu01_usb.hpp"
16+
#include "2jciebu01.hpp"
617
%}
18+
719
%include "2jciebu01_usb.hpp"
20+
%include "2jciebu01.hpp"
21+
822
/* END Common SWIG syntax */

0 commit comments

Comments
 (0)