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:
Andrei Vasiliu
2015-08-26 16:38:57 +03:00
committed by Mihai Tudor Panu
parent ea1df1b178
commit b8835958e2
28 changed files with 208 additions and 200 deletions

View File

@ -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;
}

View File

@ -31,6 +31,7 @@
#include <string.h>
#include <string>
#include <mraa/common.hpp>
#include <mraa/i2c.hpp>
#ifdef SWIGJAVA