mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
java: now using the C++ style types from mraa defined in types.hpp
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
ea1df1b178
commit
b8835958e2
@ -38,11 +38,11 @@ H3LIS331DL::H3LIS331DL(int bus, uint8_t address):
|
||||
{
|
||||
m_addr = address;
|
||||
|
||||
mraa_result_t rv;
|
||||
if ( (rv = m_i2c.address(m_addr)) != MRAA_SUCCESS)
|
||||
mraa::Result rv;
|
||||
if ( (rv = m_i2c.address(m_addr)) != mraa::SUCCESS)
|
||||
{
|
||||
cerr << "H3LIS331DL: Could not initialize i2c address. " << endl;
|
||||
mraa_result_print(rv);
|
||||
printError(rv);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <mraa/common.hpp>
|
||||
#include <mraa/i2c.hpp>
|
||||
|
||||
#define H3LIS331DL_I2C_BUS 0
|
||||
|
Reference in New Issue
Block a user