Fix condition.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 31 May 2010 16:54:13 +0000 (16:54 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 31 May 2010 16:54:13 +0000 (16:54 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3889 38d2e660-2303-0410-9eaa-f027e97ec537

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;