mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
java: fix Java return types in h3lis331dl
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
fb6627083b
commit
9cfd1a9679
@ -567,3 +567,26 @@ void H3LIS331DL::getXYZ(int *x, int *y, int*z)
|
||||
*y = (m_rawY - m_adjY);
|
||||
*z = (m_rawZ - m_adjZ);
|
||||
}
|
||||
|
||||
#ifdef SWIGJAVA
|
||||
float *H3LIS331DL::getAcceleration()
|
||||
{
|
||||
float *v = new float[3];
|
||||
getAcceleration(&v[0], &v[1], &v[2]);
|
||||
return v;
|
||||
}
|
||||
|
||||
int *H3LIS331DL::getRawXYZ()
|
||||
{
|
||||
int *v = new int[3];
|
||||
getRawXYZ(&v[0], &v[1], &v[2]);
|
||||
return v;
|
||||
}
|
||||
|
||||
int *H3LIS331DL::getXYZ()
|
||||
{
|
||||
int *v = new int[3];
|
||||
getXYZ(&v[0], &v[1], &v[2]);
|
||||
return v;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user