grove: Small changes to build grove library

* Removed relay and rotary from grove library
    * Removed relay and rotary from grove SWIG interfaces
    * Fixed warning for o2 printf %
    * Fixed return value warning for _get_normalized method used by
      my analog sensors.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-09-12 11:45:16 -07:00
parent f2211b9578
commit 1b9b142b2e
14 changed files with 10 additions and 35 deletions

View File

@ -94,6 +94,7 @@ upm_result_t flex_get_normalized(const flex_context dev, float *value)
*value = mraa_aio_read_float(dev->aio);
if (*value < 0)
return UPM_ERROR_OPERATION_FAILED;
return UPM_SUCCESS;
}
upm_result_t flex_get_raw_volts(const flex_context dev, float *value)