maa: update for 0.2.5 API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll 2014-05-19 10:45:09 +01:00
parent d6bb8bc1db
commit 811aa6b71c
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ endif ()
find_package (Threads REQUIRED)
find_package (PkgConfig REQUIRED)
# force the libmaa version to be the required version
pkg_check_modules (MAA REQUIRED maa=0.2.3)
pkg_check_modules (MAA REQUIRED maa=0.2.5)
message (INFO " found libmaa version: ${MAA_VERSION}")
set (CMAKE_SWIG_FLAGS "")

View File

@ -48,7 +48,7 @@ class GroveLed: public Grove {
maa_result_t off();
maa_result_t on();
private:
maa_gpio_context* m_gpio;
maa_gpio_context m_gpio;
};
class GroveTemp: public Grove {
@ -58,7 +58,7 @@ class GroveTemp: public Grove {
float raw_value();
int value();
private:
maa_aio_context* m_aio;
maa_aio_context m_aio;
};
class GroveLight: public Grove {
@ -68,7 +68,7 @@ class GroveLight: public Grove {
float raw_value();
int value();
private:
maa_aio_context* m_aio;
maa_aio_context m_aio;
};
}

View File

@ -55,7 +55,7 @@ public:
private:
int m_coor[3];
char m_rx_tx_buf[MAX_BUFFER_LENGTH];
maa_i2c_context* m_i2c;
maa_i2c_context m_i2c;
};
}

View File

@ -58,7 +58,7 @@ private:
int write4bits(char value);
int expandWrite(char value);
int pulseEnable(char value);
maa_i2c_context* m_i2c;
maa_i2c_context m_i2c;
};
}