summaryrefslogtreecommitdiff
path: root/digital/beacon/src
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-16 22:57:03 +0200
committerFlorent Duchon2012-12-24 17:47:56 +0100
commit1c1a227b53bb417e4f73fd7e8e912955d93b7ce7 (patch)
tree69ed552a1e2a7c37bfd4c478bbff6a8542b7a4bf /digital/beacon/src
parentaf60ab915440edb8664f4d68ce9e59ee9a0cc27f (diff)
digital/beacon: start & stop codewheel timer task according to the motor state
Diffstat (limited to 'digital/beacon/src')
-rw-r--r--digital/beacon/src/motor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/beacon/src/motor.c b/digital/beacon/src/motor.c
index 56682b48..b6453190 100644
--- a/digital/beacon/src/motor.c
+++ b/digital/beacon/src/motor.c
@@ -50,13 +50,14 @@ void motor_init(void)
void motor_start(void)
{
OCR0A = 115;
-
+ start_codewheel_timer_task();
}
/* This function stops the motor rotation */
void motor_stop(void)
{
OCR0A = 0;
+ stop_codewheel_timer_task();
}
/* This function returns the motor state */