Skip to content

Commit 4f007af

Browse files
authored
Merge pull request #148 from adafruit/adc_fix
Sleep after loading ADC overlay to allow driver load
2 parents f811062 + 1997b53 commit 4f007af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/c_adc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ BBIO_err initialize_adc(void)
5757
if (err == BBIO_OK) {
5858
strncat(adc_prefix_dir, "/sys/bus/iio/devices/iio:device0/in_voltage", sizeof(adc_prefix_dir));
5959
snprintf(test_path, sizeof(test_path), "%s%d_raw", adc_prefix_dir, 1);
60+
sleep(1);
6061
fh = fopen(test_path, "r");
6162

6263
if (!fh) {

0 commit comments

Comments
 (0)