beaglebone: fixed gpioGetDir bug