]> sigrok.org Git - libsigrok.git/commit
baylibre-acme: gpio: Don't set direction in get/set functions.
authorBartosz Golaszewski <redacted>
Wed, 16 Sep 2015 13:24:40 +0000 (15:24 +0200)
committerUwe Hermann <redacted>
Fri, 18 Sep 2015 17:52:39 +0000 (19:52 +0200)
commitb41bbfdbe2ae6076a6e074ef9652d299657e83fd
tree6a804026335b7155aa66e616797a873b47784d21
parent4678bdb60792377cec015d7e18cf8ffd80419c69
baylibre-acme: gpio: Don't set direction in get/set functions.

GPIO direction should be set once right after exporting. There's no need
to reset it again - in fact it's a bug which causes the probe to be reset
every time the value is read/set and gives incorrect results when reading
the GPIO values with direction == 'in'.

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