Changed get direction to fetch real value.
Merge branch 'master' of github.com:Feuerlabs/gpio