mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
java: Changed size_t and unsigned int to int in array declarations. Renamed buf to buffer where necesarry. Moved most Java array typemaps to java_buffer.i. Fixed some String buffers.
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Conflicts: src/upm.i
This commit is contained in:

committed by
Mihai Tudor Panu

parent
ab730038fd
commit
2cab79b4c2
@ -45,12 +45,12 @@ GroveMD::GroveMD(int bus, uint8_t address)
|
||||
|
||||
// this board *requires* 100Khz i2c bus only
|
||||
mraa_result_t rv;
|
||||
if ( (rv = mraa_i2c_frequency(m_i2c, MRAA_I2C_STD)) != MRAA_SUCCESS )
|
||||
{
|
||||
cerr << "GroveMD: Could not set i2c frequency (MRAA_I2C_STD). " << endl;
|
||||
mraa_result_print(rv);
|
||||
return;
|
||||
}
|
||||
//if ( (rv = mraa_i2c_frequency(m_i2c, MRAA_I2C_STD)) != MRAA_SUCCESS )
|
||||
//{
|
||||
//cerr << "GroveMD: Could not set i2c frequency (MRAA_I2C_STD). " << endl;
|
||||
//mraa_result_print(rv);
|
||||
//return;
|
||||
//}
|
||||
|
||||
if (mraa_i2c_address(m_i2c, m_addr))
|
||||
{
|
||||
|
Reference in New Issue
Block a user