From 2b516d0e8e5ef649ed3c9e51f3095ed0bd7e5ad1 Mon Sep 17 00:00:00 2001 From: Mathias Kegelmann Date: Thu, 4 Jan 2018 15:38:51 +0100 Subject: [PATCH] Update CalliopeSoundMotor.cpp Potential Copy&Paste error, please check. --- source/drivers/CalliopeSoundMotor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/drivers/CalliopeSoundMotor.cpp b/source/drivers/CalliopeSoundMotor.cpp index 47cb2217..493b2807 100644 --- a/source/drivers/CalliopeSoundMotor.cpp +++ b/source/drivers/CalliopeSoundMotor.cpp @@ -393,7 +393,7 @@ void CalliopeSoundMotor::motorBOn(uint8_t duty_percent) motor_AB_current_use |= 0x02; //values for duty cycle 0 - if(uint8_t(duty_motor_B_percent/2) == 0 || (motor_AB_current_use == 0x02)) { + if(uint8_t(duty_motor_A_percent/2) == 0 || (motor_AB_current_use == 0x02)) { nrf_gpio_pin_clear(CALLIOPE_PIN_MOTOR_IN1); nrf_gpio_pin_clear(CALLIOPE_PIN_MOTOR_IN2); } @@ -659,4 +659,4 @@ void CalliopeSoundMotor::systemTick() { //currently not in use } -#endif \ No newline at end of file +#endif