diff --git a/DualVNH5019MotorShieldMod3.cpp b/DualVNH5019MotorShieldMod3.cpp index c1193b1..e7ace84 100644 --- a/DualVNH5019MotorShieldMod3.cpp +++ b/DualVNH5019MotorShieldMod3.cpp @@ -440,7 +440,7 @@ void DualVNH5019MotorShieldMod3::setM4Speed(int speed) #ifdef DUALVNH5019MOTORSHIELD_TIMER5_AVAILABLE if (_PWM3 == _PWM3_TIMER5_PIN && _PWM4 == _PWM4_TIMER5_PIN) { - OCR5B = speed; + OCR5A = speed; } else { @@ -592,7 +592,7 @@ void DualVNH5019MotorShieldMod3::setM4Brake(int brake) #ifdef DUALVNH5019MOTORSHIELD_TIMER5_AVAILABLE if (_PWM3 == _PWM3_TIMER5_PIN && _PWM4 == _PWM4_TIMER5_PIN) { - OCR5B = brake; + OCR5A = brake; } else {