Set the cached direction when we change it.
Merge branch 'master' of https://github.com/Grated/Beaglebone

Conflicts:
	motor_driver.py