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
@ -61,11 +61,11 @@ PN532::PN532(int irq, int reset, int bus, uint8_t address):
|
||||
pn532Debug(false);
|
||||
mifareDebug(false);
|
||||
|
||||
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 << "PN532: Could not initialize i2c address. " << endl;
|
||||
mraa_result_print(rv);
|
||||
printError(rv);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <mraa/common.hpp>
|
||||
#include <mraa/i2c.hpp>
|
||||
|
||||
#ifdef SWIGJAVA
|
||||
|
Reference in New Issue
Block a user