X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fdc_motor.c;h=bd0dd0a465d7feafe115bfa8cab64daa758f8009;hb=1c11ac0ab0636d07db3899b02c5d89e2d0b020bc;hp=75a05f3445d34aaf0b3fc02959b54332619aa83d;hpb=d6f66b0496d96877fbcaea3751d4865729ad2aaa;p=bertos.git diff --git a/bertos/drv/dc_motor.c b/bertos/drv/dc_motor.c index 75a05f34..bd0dd0a4 100644 --- a/bertos/drv/dc_motor.c +++ b/bertos/drv/dc_motor.c @@ -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;