From ccf1461bc07143e8e17f76c5efd9176648bb3745 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 31 May 2010 16:54:13 +0000 Subject: [PATCH] Fix condition. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3889 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/dc_motor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1