Revert "Update motor.c"

This reverts commit 378ff7805866f303cc14983e80a62a81a31bff79.