Update motor.c