mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
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:
@ -24,7 +24,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include "grove.hpp"
|
||||
#include "relay.hpp"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "grove.hpp"
|
||||
#include "rotary.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -59,7 +59,7 @@ int main()
|
||||
o2_get_raw_volts(sensor, &raw_volts);
|
||||
o2_get_value(sensor, &o2_percent);
|
||||
|
||||
printf("O2 raw volts: %0.03f v, o2: %0.03f %\n",
|
||||
printf("O2 raw volts: %0.03f v, o2: %0.03f %%\n",
|
||||
raw_volts, o2_percent);
|
||||
|
||||
usleep(500000);
|
||||
|
Reference in New Issue
Block a user