diff options
| author | Andreas Klinger <[email protected]> | 2019-09-09 14:37:48 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-10-22 12:58:07 +0100 |
| commit | 68d8ab3cf1a98e9d296221afdb6433715fd57535 (patch) | |
| tree | 475034390dbcbf1afdef5b6ce0c2d9301def02d9 /tools/perf/scripts/python | |
| parent | 1cd92d42dbfff03bdd209fd6ccd5aec395faa915 (diff) | |
iio: adc: hx711: optimize performance in read cycle
Set gain in hx711_reset() to its default value after a reset cycle. This
omits one precautionary read cycle, because the read is performed in
hx711_set_gain_for_channel() anyway if gain has changed.
Check for DOUT low and if its high wait some time if it goes down
instead of doing a blind reset cycle when DOUT is not down.
This is a performance optimization which allows to query the sensor with
a higher frequency.
Signed-off-by: Andreas Klinger <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions