projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9e832
)
iio_driver.c: remove weird API calls
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Wed, 30 Sep 2015 09:44:57 +0000
(10:44 +0100)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 15 Dec 2015 10:42:06 +0000
(10:42 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
examples/iio_driver.c
patch
|
blob
|
history
diff --git
a/examples/iio_driver.c
b/examples/iio_driver.c
index
3519f45
..
8f8197c
100644
(file)
--- a/
examples/iio_driver.c
+++ b/
examples/iio_driver.c
@@
-37,16
+37,11
@@
main()
}
float iio_value;
- fprintf(stdout, "IIO device has %d channels and %d attributes\n",
- mraa_iio_get_channel_count(iio_device0),
- mraa_iio_get_attr_count(iio_device0, 0));
mraa_result_t ret = mraa_iio_read(iio_device0, "in_voltage0_raw", &iio_value);
if (ret == MRAA_SUCCESS) {
fprintf(stdout, "IIO read %f\n", iio_value);
}
- mraa_iio_stop(iio_device0);
-
return EXIT_SUCCESS;
}
//! [Interesting]