We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbf6c3 commit 09e7597Copy full SHA for 09e7597
source/c_adc.c
@@ -68,7 +68,8 @@ BBIO_err initialize_adc(void)
68
return BBIO_OK;
69
}
70
#else
71
- if (load_device_tree("cape-bone-iio")) {
+ err = load_device_tree("cape-bone-iio");
72
+ if (err == BBIO_OK) {
73
build_path("/sys/devices", "ocp.", ocp_dir, sizeof(ocp_dir));
74
build_path(ocp_dir, "helper.", adc_prefix_dir, sizeof(adc_prefix_dir));
75
strncat(adc_prefix_dir, "/AIN", sizeof(adc_prefix_dir));
0 commit comments