Fixed errors in GPIO in motor module