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
@ -41,11 +41,11 @@ M24LR64E::M24LR64E(int bus, AccessMode mode):
|
||||
else
|
||||
m_addr = M24LR64E_DEFAULT_I2C_ADDR_E2;
|
||||
|
||||
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 << "M24LR64E: Could not initialize i2c address. " << endl;
|
||||
mraa_result_print(rv);
|
||||
printError(rv);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <mraa/common.hpp>
|
||||
#include <mraa/i2c.hpp>
|
||||
|
||||
#define M24LR64E_I2C_BUS 0
|
||||
|
Reference in New Issue
Block a user