From feaad6be148dd94e6182bef52af8a2b52f0cc18a Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 22 Apr 2012 10:38:25 +0200 Subject: digital/beacon: fix motor state check into motor_start_stop_control() --- digital/beacon/src/motor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'digital') diff --git a/digital/beacon/src/motor.c b/digital/beacon/src/motor.c index 330a861c..c487c22a 100644 --- a/digital/beacon/src/motor.c +++ b/digital/beacon/src/motor.c @@ -55,7 +55,7 @@ TMotor_state motor_get_state(void) void motor_start_stop_control(void) { - if(motor_get_state == MOTOR_IN_ROTATION) + if(motor_get_state() == MOTOR_IN_ROTATION) motor_stop(); else motor_start(); -- cgit v1.2.3