]> sigrok.org Git - libsigrok.git/commit
baylibre-acme: Set update_interval when modifing samplerate.
authorBartosz Golaszewski <redacted>
Tue, 7 Apr 2015 14:55:24 +0000 (16:55 +0200)
committerUwe Hermann <redacted>
Sun, 12 Apr 2015 15:16:32 +0000 (17:16 +0200)
commit7c91c22a31a5017117116fa1fe6c2addbac813f1
tree9e49f56314399c965e9bacb4a708ecf65522c04c
parent1fe04eb8d6c84c0013413991d0632022fc0643f7
baylibre-acme: Set update_interval when modifing samplerate.

Both ina2xx and tmp401 linux drivers used by baylibre-acme expose
the standard hwmon update_interval attribute, which affects the internal
update interval of the chip.

When setting samplerate for data acquisition try to modify this
attribute accordingly.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/api.c
src/hardware/baylibre-acme/protocol.c
src/hardware/baylibre-acme/protocol.h