diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ce86eed..12caa674 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "") diff --git a/src/grove/grove.h b/src/grove/grove.h index 2a2a103e..f0f87173 100644 --- a/src/grove/grove.h +++ b/src/grove/grove.h @@ -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; }; } diff --git a/src/hmc5883l/hmc5883l.h b/src/hmc5883l/hmc5883l.h index 45df0fd7..d8837705 100644 --- a/src/hmc5883l/hmc5883l.h +++ b/src/hmc5883l/hmc5883l.h @@ -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; }; } diff --git a/src/lcm1602/lcm1602.h b/src/lcm1602/lcm1602.h index d8fe313f..69a128a0 100644 --- a/src/lcm1602/lcm1602.h +++ b/src/lcm1602/lcm1602.h @@ -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; }; }