diff --git a/MotorDriver.h b/MotorDriver.h index a66b3aa..fe262f1 100644 --- a/MotorDriver.h +++ b/MotorDriver.h @@ -113,9 +113,9 @@ class MotorDriver { virtual int getCurrentRaw(); virtual int getCurrentRawInInterrupt(); virtual unsigned int raw2mA( int raw); + virtual unsigned int mA2raw( unsigned int mA); inline bool brakeCanPWM() { return ((brakePin!=UNUSED_PIN) && (digitalPinToTimer(brakePin))); - virtual unsigned int mA2raw( unsigned int mA); } inline int getRawCurrentTripValue() { return rawCurrentTripValue;