Browse Source

servo: fix js & python wrappers by adding base class to interaface

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll 10 years ago
parent
commit
b1da85f437
2 changed files with 9 additions and 2 deletions
  1. 5
    1
      src/servo/jsupm_servo.i
  2. 4
    1
      src/servo/pyupm_servo.i

+ 5
- 1
src/servo/jsupm_servo.i View File

@@ -1,8 +1,12 @@
1 1
 %module jsupm_servo
2 2
 %include "../upm.i"
3 3
 
4
+%include "servo.h"
4 5
 %{
5 6
     #include "servo.h"
6 7
 %}
7 8
 
8
-%include "servo.h"
9
+%include "es08a.h"
10
+%{
11
+    #include "es08a.h"
12
+%}

+ 4
- 1
src/servo/pyupm_servo.i View File

@@ -1,7 +1,10 @@
1 1
 %module pyupm_servo
2 2
 %include "../upm.i"
3 3
 
4
-%feature("autodoc", "3");
4
+%include "servo.h"
5
+%{
6
+    #include "servo.h"
7
+%}
5 8
 
6 9
 %include "es08a.h"
7 10
 %{