test
Fork of MotorDriver by
Diff: MotorDriver.cpp
- Revision:
- 1:19476b49822b
- Parent:
- 0:871adb9cf798
--- a/MotorDriver.cpp Tue Dec 08 00:11:04 2015 +0000 +++ b/MotorDriver.cpp Sat Nov 25 02:02:40 2017 +0000 @@ -31,7 +31,7 @@ motor_state.value = _pwm; } else{ - motor_state.code = ERROR; // Undefined config found + motor_state.code = ERROR_M; // Undefined config found motor_state.value = _pwm; } } @@ -44,7 +44,7 @@ if(isTryingToInstantReverse){ // Set motor to brake, set state to error coast(); - motor_state.code = ERROR; motor_state.value = _pwm; + motor_state.code = ERROR_M; motor_state.value = _pwm; return motor_state; } else{