mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
apds9930: proper close iio device in destructor and update sensor description
Proper close iio device in destructor. APDS-9930 is light and proximity sensor from Avago Technologies. This sensor can measure ambient light in lux and proximity distance in 100mm. The library provided is libupm-apds9930.so.0.4.0. The example provided is apds9930-example where this app will print the value of ambient light and proximity in every 1 second. Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
398d50de2e
commit
e3b59eb05b
@ -41,7 +41,8 @@ APDS9930::APDS9930(int device)
|
||||
|
||||
APDS9930::~APDS9930()
|
||||
{
|
||||
// mraa_iio_stop(m_iio);
|
||||
if(m_iio)
|
||||
mraa_iio_close(m_iio);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user