Add support for capacitors on ADC for BVD
Add a little delay so any capacitors connected to the ADC for the BVD can charge up when using power_gpios
This commit is contained in:
parent
9a7908b632
commit
34a52ed561
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ static int bvd_sample_fetch(const struct device *dev, enum sensor_channel chan)
|
|||
LOG_DBG("Failed to enable ADC power GPIO: %d", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
// wait for any capacitance to charge up
|
||||
k_sleep(K_MSEC(10));
|
||||
}
|
||||
|
||||
// Read ADC
|
||||
|
|
Loading…
Add table
Reference in a new issue