ims: Fixed IMS java example

* Fixed a compile issue for the JAVA example
    * Added C header to swig java/js interface files

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2016-11-29 09:56:57 -08:00
parent 9a4f0cae0c
commit 929244b27a
4 changed files with 4 additions and 2 deletions

View File

@ -158,7 +158,7 @@ add_example(DFREC_Example dfrec)
add_example(SHT1X_Example sht1x)
add_example(MS5803_Example ms5803)
add_example(ECEZO_Example ecezo)
add_example(IMS_Example ecezo)
add_example(IMS_Example ims)
add_example_with_path(Jhd1313m1_lcdSample lcd i2clcd)
add_example_with_path(Jhd1313m1Sample lcd i2clcd)

View File

@ -31,7 +31,7 @@ public class IMS_Example
// ! [Interesting]
// Instantiate a IMS instance using bus 0 and default i2c address
IMS sensor = new IMS(0);
IMS sensor = new IMS((short)0);
while (true)
{

View File

@ -5,6 +5,7 @@
#include "ims.hpp"
%}
%include "ims.h"
%include "ims.hpp"
%pragma(java) jniclasscode=%{

View File

@ -5,4 +5,5 @@
#include "ims.hpp"
%}
%include "ims.h"
%include "ims.hpp"