Home
last modified time | relevance | path

Searched hist:"5 d4a54e8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/skeleton/pytools/
H A Dgpioutil5d4a54e8 Fri Dec 02 12:26:15 CST 2016 Xo Wang <xow@google.com> pytools/gpioutil: Don't set direction if already set

Writing "out" to GPIO direction will actually clear the output value.
This makes it impossible to read the value of outputs with gpioutil
since it always sets value to 0 before reading it.

Fix: don't write direction if the direction already matches that
requested.

Change-Id: I2116e6c7f5800239dd89c4f47fe7fd087b3a87cd
Signed-off-by: Xo Wang <xow@google.com>