Skip to content

Commit 1997b53

Browse files
committed
Sleep after loading ADC overlay to allow driver load
1 parent feb3c63 commit 1997b53

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)