tsl2561: change getLux calls to return an int

To follow with our simple API requirements, change the return value of getLux()
call to an int. This lets SWIG do a better job with generating an API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-12 15:14:13 +00:00
parent 2ea12da8b8
commit 96a8bf7e06
2 changed files with 6 additions and 7 deletions

View File

@@ -128,11 +128,9 @@ class TSL2561{
/**
* Get calculated lux reading from TSL2561
*
* @param lux - place holder to receive calculated lux value from TSL2561
*
* Return mraa_result_t
* @return the calculated lux value from the sensor
*/
mraa_result_t getLux(int &lux);
int getLux();
private:
/**