doc: Added group definitions for most common modules.
[bertos.git] / bertos / drv / dc_motor.c
index 75a05f3445d34aaf0b3fc02959b54332619aa83d..bd0dd0a465d7feafe115bfa8cab64daa758f8009 100644 (file)
@@ -192,7 +192,7 @@ static void dc_motor_do(int index)
        DC_MOTOR_LOCK;
 
        //If select DC motor is not active we return
-       if (!dcm->status & DC_MOTOR_ACTIVE)
+       if (!(dcm->status & DC_MOTOR_ACTIVE))
        {
                DC_MOTOR_UNLOCK;
                return;