commit | 5d4a54e8949995f3e49366f575fcb47f119beb52 | [log] [tgz] |
---|---|---|
author | Xo Wang <xow@google.com> | Fri Dec 02 10:26:15 2016 -0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Mon Dec 05 20:29:13 2016 +0000 |
tree | efa141f813b79ba91f100c884f12e101d50236a1 | |
parent | 12a26d27e75d4cb96291f9fa4bea44cf7900bf58 [diff] |
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>