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:
Lay, Kuan Loon 2016-04-21 18:38:33 +08:00 committed by Noel Eck
parent 398d50de2e
commit e3b59eb05b

View File

@ -41,7 +41,8 @@ APDS9930::APDS9930(int device)
APDS9930::~APDS9930()
{
// mraa_iio_stop(m_iio);
if(m_iio)
mraa_iio_close(m_iio);
}
int